← Questions
Order service whose database write succeeds but queue publish fails
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Design the order path of an online bookstore. When an order request arrives, the service inserts the order into its database and then publishes a message to a queue (Amazon SQS) so other parts of the system can process the order asynchronously.
- The database insert succeeds but the publish fails. What goes wrong, and how do you make sure every saved order is eventually published?
- Consumers can receive the same message more than once. How do you keep an order from being processed twice?
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
