I am planning for an unveiling event that will see many (up to 10K) users hit a certain page at the exact same time. Users will be sitting on the page and watching a countdown timer to an exact time. When that time arrives, the page will refresh automatically (via browser request). We will purge Cloudflare cache at that exact time (because the origin server will begin serving different html)
I have a question about how Cloudflare’s caching will behave in this scenario.
It will look a bit like this:
- First Request (Cloudflare calls the origin server as resource will not be in cache)
- Up to 10K requests immediately following (likely before the origin request will have responded)
- The call to the origin server responds and the resource is established in cache
My question is about what happens to the 10K requests in step #2. Will Cloudflare queue them up (knowing that caching is in progress) or will Cloudflare pass the requests through to the origin server?