Design Patterns · Senior · Question 75 of 75

Why use queues to decouple a slow operation (e.g. generating a PDF report) from a user request?

Explanation

The UI shows a pending status and gets notified (polling, WebSocket, email) when the job completes.

Further reading

Problem with a question

Design Patterns · Senior · question 75

Test yourself

Take the Design Patterns · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz