Managing Long Running Tasks easy
What is a 'Gateway Timeout' (504 Error)?
- A The server is offline.
- B The password is wrong.
- C The database is full.
- D An upstream server (like the Load Balancer or Proxy) did not receive a timely response from the backend application (it took too long).
Answer: D. An upstream server (like the Load Balancer or Proxy) did not receive a timely response from the backend application (it took too long).
Typical symptom of trying to do a Long Running Task synchronously.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- What is the primary purpose of a Dead Letter Queue (DLQ)?
- The architectural pattern where one service creates tasks and another processes them is called:
- In a Priority Queue system (High vs Low), what is 'Starvation' and how do you fix it?
- How do you atomically update your local database AND publish a message to a queue without losing sync if the process crashes in between?
- What does 'Fire and Forget' mean?
- Why might you 'Throttle' (limit the speed of) your background workers?