Launching S3 Wormhole

(daemonology.net)

101 points | by lewww 22 hours ago

12 comments

  • pizzafeelsright 46 minutes ago
    How is there a market or charge for this?

    It seems rather trivial, which is to say, I want to understand.

    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.

  • pocksuppet 36 minutes ago
    Or just don't use AWS and watch your costs drop by a factor of 10.

    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.

  • spense 54 minutes ago
    warpstream did this to complete with kafka

    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).

    https://www.warpstream.com/blog/kafka-is-dead-long-live-kafk...

    https://www.warpstream.com/blog/warpstream-s3-express-one-zo...

  • datadrivenangel 16 hours ago
    Very clever to take advantage of the S3 to EC2 being free within regions.
  • harshaw 37 minutes ago
    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".
  • toomuchtodo 48 minutes ago
    > Q. Did anyone at Amazon know you were doing this?

    > 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.

    This is a badge of honor, wear it proudly. Weird people build cool things. Great work, stay weird.

  • amluto 2 hours 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 1 hour 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 59 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 1 hour 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 1 hour 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 1 hour 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.

        • amluto 35 minutes ago
          Modern hardware can do 64Tbps each way over a single fiber pair using DWDM and what are now considered fairly standard 800G optics, for about $3M in equipment cost (not including installation), but you can amortize a whole lot of fiber pairs over a single conduit. (In fact generally one buys multistrand cable -- I've never installed fiber cables with fewer than 12 strands because the extra strands cost almost nothing.)

          At AWS's pricing, assuming 100% utilization, they invoice about $25M per day for that link.

          Yes, this fancy gear pays for itself at AWS rates in a few hours.

          I do not believe that the rest of the plant accounts for this. AWS does not charge for traffic within an AZ. The sole additional cost to them from cross-AZ is that the traffic needs to route to a switch/router whose links connect to the long-range DWDM fiber.

        • ignoreusernames 44 minutes ago
          > Are you sure you’re not thinking of cross-region?

          Not really. "Expensive" is relative from project to project, but on my experience any DB or DB like thing requiring cross-az replication is going to introduce non trivial costs, especially on larger scales. For small business with little to no data, yeah, it shouldn't be a problem.

  • 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 1 hour 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"...

    • cobwebcheck 50 minutes ago
      [dead]
    • aeyes 1 hour 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.
    • pocksuppet 33 minutes ago
      Every ToS has an implicit clause of "you may not prevent us getting more money"
  • xnx 43 minutes ago
    More like: S3 Loophole
  • bob1029 1 hour 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.

  • mef 17 hours ago
    nefarious! I love it
  • nvartolomei 1 hour ago
    Love this. Warpstream and friends did put this in production.