All Questions
Managing Long Running Tasks easy

Why use a separate 'Worker' process instead of running the task inside the Web Server thread?

  1. A Workers are cheaper.
  2. B Web Servers cannot do math.
  3. C To keep the Web Server responsive to new incoming requests. Heavy CPU/IO tasks block the Event Loop or consume thread pool threads, causing lag for other users.
  4. D To use less memory.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions