Move Work Out of the Request
Talk it through out loud with your AI coach.
The problem
- easy
When a user signs up, your endpoint sends a welcome email, resizes their avatar and syncs them to the CRM before responding, and sign-up takes eight seconds. Explain how you'd move this work into background jobs.
What a strong answer covers
- Separating what the user must wait for from what can finish later.
- How a queue and separate workers take on the deferred work.
- What gets better for speed and resilience.
- How the interface copes when work completes a little later.
Common mistake: Firing off work in the background of the web process with no queue, so it is lost if the process restarts.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud