SystemDesignLaws

SystemDesignLaws

Managing Long-Running Tasks

- When a task takes more than a few seconds, do not make the client wait. Accept the request immediately (return...

Jimmy Malhan's avatar
Jimmy Malhan
Mar 16, 2026
∙ Paid

30-second elevator pitch: "For any operation that takes more than a few seconds, I return a job ID immediately and process asynchronously. A message queue decouples submission from processing. Workers pull jobs, execute them, and update status. The client polls for completion or gets a webhook callback. I add exponential backoff for retries and a dead l…

User's avatar

Continue reading this post for free, courtesy of Jimmy Malhan.

Or purchase a paid subscription.
© 2026 Jimmy Malhan · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture