warpstream did this to complete with kafka<p>they write to a quorum of S3 express one zones, which improves e2e latency by 4x and is still cheaper if you keep uploads <200kb. above that, S3 standard is cheaper (what wormhole uses).<p><a href="https://www.warpstream.com/blog/kafka-is-dead-long-live-kafka" rel="nofollow">https://www.warpstream.com/blog/kafka-is-dead-long-live-kafk...</a><p><a href="https://www.warpstream.com/blog/warpstream-s3-express-one-zone-benchmark-and-total-cost-of-ownership#tco" rel="nofollow">https://www.warpstream.com/blog/warpstream-s3-express-one-zo...</a>
I’m pretty sure someone makes one of these every few years
Very clever to take advantage of the S3 to EC2 being free within regions.
The Cross-AZ charges are a strong moat at AWS. When I was on EFS we naturally had lot's of cross AZ charges because we were replicating erasure-encoded data across 3 AZs. So you would think that because we were in AWS we'd get a better deal on cross AZ charges? Nope. We had internal pricing but AWS networking refused to budge. We could have bought our own fiber and routers for the cost they were charging us for cross-AZ traffic. We ended up doing some tricks to reduce our cross AZ spend. but it was a big part of our cost reduction strategy. We also launched a 1 zone EFS. But yeah - the markup on networking never made any sense except that "this is where the scrooge mcduck bags of money are located".
My personal theory is the clouds charge bandwidth at absurd prices because it's easy to meter and it <i>roughly</i> correlates with all the input costs they can't easily meter.<p>At the end of the day, they have a margin they're targeting, and it's just easier to hang most of that on bandwidth.
I've always advocated that it makes sense (for lots of things) to treat an AZ as a self contained service by itself, and to run, for instance, 3 of those services across 3 AZs; things inside an AZ talk to the local service.<p>The presumption was that for lots of things, you're kinda okay with some stuff within an AZ being eventually consistent on the assumption that the AZ will eventually come back online and what happened within it will still be there.<p>So for instance -- run 3 2 node kafka clusters instead of one 6 node kafka cluster.<p>This isn't a good idea for lots of things, but it does help to constrain some cross-AZ traffic that may not actually be all that useful.
> Q. Did anyone at Amazon know you were doing this?<p>> A. Absolutely not. If they knew, they would have had to try to stop me. Amazonians aren't just people I work with; they're my friends, and I don't want anyone to get in trouble for me being irredeemably weird.<p>This is a badge of honor, wear it proudly. Weird people build cool things. Great work, stay weird.
How is there a market or charge for this?<p>It seems rather trivial, which is to say, I want to understand.<p>I have found a few other methods to ship data rather cheaply but any time "at scale" happens the cost really has not been an issue because $2k is a lot to me but in my $5M project it's not worth the hour of effort.
> You pay for the infrastructure used by S3 Wormhole inside your AWS account — Amazon EC2 instances for the S3 Wormhole endpoints, and Amazon S3 requests — but the S3 Wormhole service itself is free. Data in transit is stored in S3 Standard only briefly and is deleted once it has been delivered, so storage charges are negligible.
Or just don't use AWS and watch your costs drop by a factor of 10.<p>99% of apps could be reasonably served by an on-premise server under someone's desk. You might want a bit more reliability than that, but the point stands.
If you price out the cost of having multi-site redundancy and 99.99999999% storage reliability and being able to scale up and down really easily and having it in a secure network that you don’t have to maintain, it’s unlikely you’ll be saving that much.
IMO most on prem chargeback models suck ass and produce perverse incentives and rationing.
I think this mostly illustrates how absurd AWS pricing is. This in-and-out-of-S3 traffic surely costs AWS at least an order of magnitude more more than ordinary cross-AZ traffic: it gets checksummed; it goes through the fancy S3 metadata layer three times (and the write and subsequent delete are atomic!); it needs to be stored durably and deleted durably; and it still needs to cross AZs!<p>This likely indicates that cross-AZ traffic is marked up 100x and likely quite a bit more. And the NAT gateway somehow adds another 4.5x on top.
There are some possibilities which could make S3 replication legitimately cheaper: It doesn't need to track security groups or connections, and it might run at a lower QoS.<p>But I think the right answer to that is "give us an option for discounted low-priority traffic".
The cost of matching ACLs is trivial compared to S3, where metadata writes go through a distributed database with strict consistency and multi-round consensus.<p>S3 writes synchronous within a region with read-after-write consistency, so they can't treat it as low-prio traffic either without killing write latency.
I've known teams taking advantage of this same trick at scale for years. Maybe something will change now that somebody is pointing it out with a generic tool?<p>I'd guess the underlying reason is that S3's pricing is very competitive, and people pay attention to it. But things like networking that generally don't amount to much people just accept whatever the price is. So AWS can get away with absurd markup.
> This likely indicates that cross-AZ traffic is marked up 100x<p>Or even higher. Their AZ traffic pricing has always been borderline criminal. I think they just treat it as a hidden tax for bigger enterprises (smaller companies usually don't worry about cross-AZ resilience). I put it on the same class as SAS companies treating SSO functionality as some extremely complex thing hidden behind "enterprise class" pricing.
I'm struggling to understand how this against ToS. All it really does is shed some light on the absurdity of the inter-AZ transit cost.
I feel like it would almost be cheaper if you need replication to use something like the <a href="https://github.com/afreidah/s3-orchestrator" rel="nofollow">https://github.com/afreidah/s3-orchestrator</a> orchestration tool I built and configure both buckets as separate backends and do broadcast writes so that it writes to both simultaneously and you just get hit with the ingress of each and no egress/transfer fees...and add compression to shrink the ingress/egress size.<p>But I'm not super up-to-date on how s3 pricing works across AZs and stuff.
<i>I'm struggling to understand how this against ToS.</i><p>I don't think it is. Amazon <i>might</i> have some objections to the name, but they don't have a trademark on "S3"...
[dead]
Why would it be? Whole enterprises were built on trying to reduce AWS cost by using the tools that AWS provides in clever ways.
Every ToS has an implicit clause of "you may not prevent us getting more money"
An even easier solution is to not use AWS instead of jumping through hoops and doing backflips to avoid the AWS crazy billing gotchas.<p>Once you're at the point of developing something like this you really have to take a step back and ask why you are here at all.
More like: S3 Loophole
I think the marginal cost per gigabyte thru S3 might actually be cheaper for Amazon than a low latency network link between two arbitrary points in space.<p>I have a feeling there would not be any kind of TOS consequences for this.
nefarious! I love it
Love this. Warpstream and friends did put this in production.