Skip to content

Design a Distributed Job Queue, stage 1 of 9: model

What the numbers say

Use 86,400 seconds in a day, and about 2 KB per job.

System so far· 4 parts
12SERVICEWeb serversQUEUERedis queuesWORKERWorkersDATABASEDatabasesand services

Select a component to see what it is responsible for and which state it owns.

  1. 1Workers → Redis queues: Lease jobs
  2. 2Workers → Databases and services: Do the work

What you need to know

0 of 3 checks done
  1. A day has 86,400 seconds. Divide a daily total by 86,400 to get the average per second, then compare it with the peak to see how spiky the traffic is.

  2. Work it out

    1.4 billion jobs a day. About how many jobs a second is that on average?
    per second