Data transfer costs surprised me more than compute. How do you plan for egress?
I set up a small app expecting the server to be the main cost. It turned out that serving files out of the cloud, and moving data between regions, added up faster than I'd guessed.
Things I'm looking at now:
- Putting a CDN in front of static files
- Keeping services that talk a lot in the same region and zone
- Checking whether my backups are crossing regions without me realising
How do you estimate data transfer costs before you build, instead of finding out from the bill?
Comments · 4
Set billing alerts and a monthly budget on day one. Egress charges are the kind of line item that doesn't look scary until the invoice shows up.
We moved images behind a CDN and our bill dropped by a noticeable chunk. Caching headers matter too, so check that browsers actually cache what you serve.
What's egress in simple terms? Is it just data leaving the provider's network, and is data coming in free?
Exactly. Egress is data leaving the provider's network, such as to users or another region. Incoming data is usually free, which is why costs surprise people.