Launching S3 Wormhole (daemonology.net)

75 points by lewww a day ago

datadrivenangel 16 hours ago

Very clever to take advantage of the S3 to EC2 being free within regions.

mef 17 hours ago

nefarious! I love it

nvartolomei 24 minutes ago

Love this. Warpstream and friends did put this in production.

amluto an hour ago

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!

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.

cperciva 39 minutes ago

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.

But I think the right answer to that is "give us an option for discounted low-priority traffic".

lima 5 minutes ago

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.

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.

oofbey 31 minutes ago

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?

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.

ignoreusernames 26 minutes ago

> This likely indicates that cross-AZ traffic is marked up 100x

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.

hnlmorg 9 minutes ago

Are you sure you’re not thinking of cross-region? Which is very expensive and definitely not something your average business would worry about.

Whereas I’d expect most businesses to be multi-AZ since it’s very easy and usually cost effective to implement.

bob1029 24 minutes ago

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.

I have a feeling there would not be any kind of TOS consequences for this.

booi 18 hours ago

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.

munch-o-man 32 minutes ago

I feel like it would almost be cheaper if you need replication to use something like the https://github.com/afreidah/s3-orchestrator 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.

But I'm not super up-to-date on how s3 pricing works across AZs and stuff.

cperciva 17 hours ago

I'm struggling to understand how this against ToS.

I don't think it is. Amazon might have some objections to the name, but they don't have a trademark on "S3"...

aeyes 6 minutes ago

Why would it be? Whole enterprises were built on trying to reduce AWS cost by using the tools that AWS provides in clever ways.