You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Previous episode Read replicas: how a database is copied when every copy must agree

What happens when a website goes viral: how a site keeps up with millions of visitors

Message queues: how a website takes a flood of slow jobs without slowing down

In the same minute, hundreds of thousands of visitors ask for a slow job, like a picture to share or an email to send. Each job keeps a server busy for a few seconds. More servers is one answer, but not the best one.

  1. 1 A share card is a small picture of a player's grid, and drawing one keeps a server busy for about two seconds. Miva waits, phone in hand, while it draws.Miva2 s

    A share card is a small picture of a player's grid, and drawing one keeps a server busy for about two seconds. Miva waits, phone in hand, while it draws.

  2. 2 Now 300,000 taps arrive in one minute. Every server is busy drawing, and even players who only want to send a guess are stuck behind the pictures.waiting

    Now 300,000 taps arrive in one minute. Every server is busy drawing, and even players who only want to send a guess are stuck behind the pictures.

The rest of this episode is for subscribers

Subscribe to read every premium episode. You can cancel when you want.

Paid yearly: $99 instead of $119.88

Next episode Autoscaling: why adding servers by itself can still come too late

Share this comic

More comics