By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Cloudflare Achieves 99.99% Warm Start Rate for Workers with ‘Shard and Conquer’ Consistent Hashing
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Cloudflare Achieves 99.99% Warm Start Rate for Workers with ‘Shard and Conquer’ Consistent Hashing
News

Cloudflare Achieves 99.99% Warm Start Rate for Workers with ‘Shard and Conquer’ Consistent Hashing

News Room
Last updated: 2025/10/10 at 6:09 AM
News Room Published 10 October 2025
Share
SHARE

Recently, Cloudflare introduced a new technique called “Shard and Conquer” for reducing cold starts in its serverless platform, Cloudflare Workers. It leverages a consistent hash ring to intentionally coalesce traffic for individual Workers onto a single “shard server” within a data center. With this new technique, the company has reduced the cold start rate by a factor of 10, achieving a sustained warm request rate for 99.99% of requests.

The technique marks the second significant evolution in cold start mitigation for the company, as the initial technique, pre-warming during the TLS handshake, began to fail for increasingly complex applications. Hence, Cloudflare decided to relax several platform limits in response to user demand for running larger, more complex applications by increasing script size from 1MB to 10MB (for paying users) and startup CPU time from 200ms to 400ms.

Yet by accommodating richer applications, these increases simultaneously lengthened the Worker’s cold start duration, causing it to frequently exceed the time of a modern TLS 1.3 handshake. This meant the cold start time could no longer be hidden entirely from the end user, requiring a new approach to minimize the frequency of cold starts.

The core motivation for this optimization lies in the serverless value proposition, as one Hacker News commentator observed:

Because attractiveness of Workers/Lambdas/Functions is whole ‘write simple amount of code and pay pennies to run it.’ Downside is cold starts, twisting yourself into knots you will do at scale to make them work, and vendor lock-in.

To solve the cold start frequency problem, Cloudflare borrowed a key technique from its own CDN HTTP cache: consistent hashing.

Previously, a request arriving on any server could trigger a redundant cold start, even if a warm Worker instance already existed on a nearby machine. This resulted in high cold start rates for low-volume Workers, whose instances were frequently evicted across multiple servers due to low, scattered traffic.

The new architecture works as follows:

  • A Worker’s script ID is mapped onto a consistent hash ring shared by all servers in a data center.
  • Subsequently, this map dictates a single, primary “shard server” that is responsible for running a specific Worker instance.
  • As a result, all requests for that Worker are routed to the shard server, keeping the Worker instance warm indefinitely and reducing memory usage across the cluster by avoiding redundant instances.

(Source: Cloudflare blog post)

A crucial engineering challenge for this sharding model is load shedding. An individual Worker instance could still be overwhelmed by a sudden traffic spike, requiring the system to scale horizontally and instantiate new Workers on other servers immediately. This must be done without incurring the latency of a pre-flight “may I send the request” check (like Expect: 100-continue).

Cloudflare achieved graceful, low-latency load shedding by integrating its cross-instance communication tool, Cap’n Proto RPC:

  • Optimistic Sending: The shard client (the server that initially received the request) optimistically sends the complete request to the shard server.
  • Capability Passing: Critically, the client includes a Cap’n Proto capability (a handle to a lazily-loaded local Worker instance) within the request payload.
  • Refusal and Redirect: If the shard server is overloaded, instead of simply returning a “go away” error, it returns the client’s own lazy capability.
  • Short-Circuiting the Trombone: The client’s RPC system recognizes that the returned capability is local. It immediately stops proxying request bytes to the server, short-circuiting the request path and serving the Worker locally via a rapid cold start (since it now knows to skip the shard server).

The mechanism elegantly offloads traffic and achieves horizontal scaling for burst loads without introducing additional round-trip latency. Furthermore, the technique also extends to complex invocation stacks, where Workers invoke other Workers via Service Bindings, by serializing and passing the entire invocation context stack between shard servers.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Why blockchain verification could eliminate Indonesia’s $22 billion fake degree problem | HackerNoon
Next Article Samsung researchers create tiny AI model that shames the biggest LLMs in reasoning puzzles – News
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

‘Tron: Ares’ Wants to Gaslight You About the Future of AI
Gadget
First NIO-partnered EV with swappable batteries to go on sale in Q3: report · TechNode
Computing
‘Super weird’ sea DRAGON is uncovered in UK & could solve 184m-year-old mystery
News
Hottest Altcoins That Are Set To Rally In Uptober: Analysts Say Paydax (PDP) Is The Next 10000x Crypto
Gadget

You Might also Like

News

‘Super weird’ sea DRAGON is uncovered in UK & could solve 184m-year-old mystery

5 Min Read
News

Chrome will automatically disable web notifications you don’t care about

2 Min Read
News

This Ugreen MagSafe 25W Charger Just Dropped 33%

3 Min Read
News

Nasa reveals Earth is getting darker – and the potential impacts are worrying

4 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?