Diego Alvarez@diegoalvarez
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
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
'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.