S3 Wormhole: unofficial tool sends cross-AZ AWS traffic via S3
The author of the daemonology.net blog announces S3 Wormhole, a networking technology meant to cut cross-AZ data transfer costs on AWS. The post is written in the register of an AWS launch announcement, and its closing FAQ says plainly that this is not an official AWS service and that nobody at Amazon knew about it.
The problem it targets: AWS Availability Zones in a Region are physically separate, many kilometers apart but all within 100 km (60 miles), and the Well-Architected Framework's Reliability pillar recommends spreading workloads across them. But data moving between zones in the same Region is charged at $0.01/GB in each direction, once as it leaves one zone and once as it enters the other. For database replication, distributed caches, streaming pipelines and service meshes that adds up. The author also says that in conversations with customers, the fear of these charges often matters more than the charges themselves: many customers run in a single zone because they are worried about the cost, not because they measured it. One customer told the author: "I know how much bandwidth it takes to download a 1 MB web page. But I have no idea how much bandwidth 50 SQL queries add up to."
How it works: traffic from your application is routed to an S3 Wormhole endpoint in the same zone, which writes it to S3. An endpoint in the destination zone reads it back and injects it into the EC2 network. Because data transfer between EC2 and S3 in the same Region is free, the data reaches the other zone without cross-AZ charges.
Performance: the author launched a pair of Graviton4-based c8gn.8xlarge instances as the two ends of a wormhole, plus two more as workload generators. With iperf3 across 128 parallel streams over 180 seconds, the summed result was 10.2 Gbits/sec on the sender side (213 GBytes) and 10.0 Gbits/sec on the receiver side (211 GBytes). The author also reports 41.2 Gbps of UDP, noting that UDP is easier because it has no congestion control. In this example, moving 10 Gbps directly between zones would cost $90 per hour in cross-AZ charges; the same traffic through S3 Wormhole costs 93% less.
The post lists several things to know. Endpoints must reach S3 through a gateway VPC endpoint; going through a NAT gateway adds a $0.045/GB data processing charge and makes Wormhole more expensive than the cross-AZ transfer it replaces. Endpoints are EC2 instances with a base cost whether busy or idle, so users should estimate traffic and pick a size; for any instance size, the supported bandwidth is 10 to 60 times the break-even point at standard on-demand instance and data transfer prices. Traffic travels through S3 in objects of up to 16 MiB by default, and below about 270 kB per object the S3 request charges alone exceed the cross-AZ charges. With the default timing, where aggregation waits no more than 25 ms, that threshold corresponds to 86.4 Mbps of throughput; the wait is configurable, trading cost reduction against added latency. Wormholes inherently have high latency and jitter, so congestion control that works well on satellite links matters: TCP BBR can often deliver over 10x the throughput of TCP CUBIC, and network buffers may need tuning. Security group rules that reference another security group do not match Wormhole traffic; both ends must allow the other instance's private IP or its subnet CIDR as the source. Wormhole works within a single Region only, since a cross-Region wormhole would pay inter-Region charges and save nothing.
On cost, users pay for the EC2 instances and S3 requests in their own account, but the S3 Wormhole service itself is free. Data sits in S3 Standard only briefly and is deleted after delivery, so storage charges are negligible.
S3 Wormhole is available in private preview; interested users are asked to email cperciva-s3wormhole@daemonology.net. The FAQ adds that it is not an official AWS service, that it did not launch on April 1st because important new AWS infrastructure traditionally launches in the week of Cyber Monday, that it is not HIPAA compliant (doctors use fax machines, but never carrier pigeons), and that nobody at Amazon knew, because if they had, they would have had to try to stop the author.
Key facts
- S3 Wormhole routes traffic between AWS Availability Zones through S3 (EC2 to S3 in the same Region is free) to avoid the $0.01/GB-each-direction cross-AZ charge.
- The author measured 10 Gbps of TCP across 128 parallel streams (10.2 Gbits/sec sender, 10.0 Gbits/sec receiver) and 41.2 Gbps of UDP on c8gn.8xlarge instances.
- For 10 Gbps, direct cross-AZ transfer would cost $90 per hour; the same traffic via S3 Wormhole costs 93% less, with the service itself free but EC2 endpoints and S3 requests billed to the user.
- It only pays off with a gateway VPC endpoint (a NAT gateway's $0.045/GB makes it costlier) and with objects above about 270 kB; the default 25 ms aggregation matches 86.4 Mbps.
- It is a private preview and, per the post's FAQ, not an official AWS service.
Why it matters
Cross-AZ transfer fees sit in tension with the advice to run across several Availability Zones. The post says customers often stay in one zone out of fear of the bill, trading reliability for cost. S3 Wormhole is pitched as removing that trade by exploiting a pricing quirk: traffic between EC2 and S3 in a Region is free, so S3 can serve as a relay between zones. The post frames the usual choice as one between the Reliability and Cost Optimization pillars of the Well-Architected Framework.
Who it affects
Teams that move large volumes of data between zones: database replication, distributed caches, streaming pipelines and service meshes, as the post names them. It also targets teams that deploy into a single zone because they are afraid of what multi-AZ traffic might cost. It works within one Region only, so cross-Region traffic gets no benefit.
How to use it
It is offered only as a private preview; the post asks interested users to email cperciva-s3wormhole@daemonology.net. Endpoints are EC2 instances you run in your own account, so you estimate your traffic and choose an instance size. They must reach S3 through a gateway VPC endpoint. You pay for the instances and S3 requests; the service itself is free. For good TCP performance over the high-latency path the author suggests congestion control that suits satellite links, such as BBR, and possibly tuning network buffers. Security group rules must name the other instance's private IP or subnet CIDR, not its security group. The aggregation wait defaults to 25 ms and is configurable, trading cost savings against latency.
How solid is it
This is one person's blog post, and the FAQ states it is not an official AWS service; no reaction from AWS is reported. The performance numbers come from the author's own single benchmark: a pair of Graviton4 c8gn.8xlarge instances as wormhole ends, driven by iperf3 with 128 parallel streams for 180 seconds, giving about 10 Gbps of TCP. The 41.2 Gbps figure is UDP, which the author notes is easier than TCP. The 93% saving applies to that benchmark example, and the 10 to 60 times headroom over break-even assumes standard on-demand instance and data transfer pricing. The post's tone is tongue-in-cheek, so read the FAQ answers as jokes rather than commitments.
Risks and caveats
Endpoints cost money whether busy or idle. Through a NAT gateway the $0.045/GB processing charge makes Wormhole more expensive than plain cross-AZ transfer. Below about 270 kB per object, S3 request charges alone exceed the cross-AZ fees, which at the default 25 ms timing corresponds to 86.4 Mbps, so low-traffic links may not save anything. Latency and jitter are inherently high. Security group references do not work across the wormhole. The FAQ says it is not HIPAA compliant (a joke about fax machines and carrier pigeons) and that Amazon did not know about the project. No timeline for general availability is given.
“I know how much bandwidth it takes to download a 1 MB web page. But I have no idea how much bandwidth 50 SQL queries add up to.”
— An unnamed customer, as relayed by the post's author