Boost Web Performance 85%: Rethink Edge Computing StrategyBoost Web Performance 85%: Rethink Edge Computing Strategy
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
The LokerDollar.com web up to 85% faster in some cities — by moving our code farther from users.
Sounds backwards. Here's why it worked.
1. The edge promise is seductive: run your code in 300+ cities, and it's milliseconds from every user. Newark, Sydney, São Paulo — all local.
2. Your code doesn't work alone. It talks to a database. And that database lives in one place. A single page render can mean 6+ sequential trips to it.
3. Put your compute "at the edge," and each of those trips crosses an ocean and comes back. The edge didn't remove the distance. It multiplied it. That's how a Sydney request quietly turned into seconds of pure waiting.
The fix was one line of config Cloudflare smart placement stopped stop pinning our code next to the user, and run it next to the database instead. One long trip to reach compute, then all the DB chatter is local and nearly free.
The result, measured on our own traffic (P90 — the slowest 1 in 10 requests): • Newark ↓ 85% • Sydney ↓ 82% • Melbourne ↓ 63% • São Paulo ↓ 60% and …12 cities faster overall
The lesson I'm taking with me:
Latency isn't about distance to the user. It's the number of long trips on the critical path. Put compute where it talks the most — for data-heavy apps, that's your database, not the edge.
#WebPerformance #EdgeComputing #Cloudflare #BuildInPublic #SoftwareEngineering
Post image
Sunday's avatar
Great Work
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started