Why async
Your checkout button takes nine seconds, because it charges the card, builds a PDF receipt, sends an email, calls the warehouse and updates analytics before it answers. Only one of those had to happen before the customer saw "Thank you". Which one?
In this lesson you'll learn to
- Explain the difference between doing work synchronously, inside the request, and asynchronously, after the reply.
- Decide which work can leave the request path and which must stay.
- Name the costs of async work, including delay, duplicates, ordering and harder debugging.
- Report the progress of async work back to the user with a 202 reply, a status resource, polling or a webhook.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.