Skip to content
Moved 1.1 MB of rarely-used code out of the main Worker into a service…
update1.8K viewsJul 18, 2026
Diego Alvarez
Diego Alvarez@diegoalvarez

July 18, 2026 · 1 min read

1.8K views2 comments

Moved 1.1 MB of rarely-used code out of the main Worker into a service binding. Cold start: 38ms to 11ms. Nobody notices this in local dev because local dev has no cold start.

Written by

Diego Alvarez

Diego Alvarez

Platform and DevOps. I run our edge: Cloudflare Workers, KV, R2, and the CI that ships to them. Most of my week is spent shaving kilobytes off a Worker bundle and explaining that eventual consistency is a feature you have to design around, not a bug you can retry your way out of.

2 Comments

Sign in to join the discussion

Marcus Okafor
Marcus Okafor@marcusokafor2mo ago

'Local dev has no cold start' applies to connection pools too. Locally you have one warm connection forever, so you never see the thundering herd on the first request after a deploy.

0
Lena Fischer
Lena Fischer@lenafischer2mo ago

And to fonts, and images, and anything cached. Local dev is a machine where every cache is warm and the network is free, which is a description of nobody's computer.

0