3 ms·
1) Some tasks may take a long time to complete. For example, generating a report or converting a video file might take several minutes. You don't want a user to
by codedokode 4y ago
1) Some tasks may take a long time to complete. For example, generating a report or converting a video file might take several minutes. You don't want a user to look at a blank page for so long, and browser might even close the connection because of timeout.
2) Reliability. Imagine, if a customer places an order in a store, but the server process crashes and the order is lost. The customer won't be happy about this.
A mesasge queue might help in both cases. Note that you might implement a queue in a SQL database as well, but this still will be a message queue.
- TedDoesntTalk 4y agoAnd the downside is the http request can never have the full response. Client must somehow make another request to get results.