medium10 pts · first answer countsmessage-queuestransactions
Job runs before the row exists
An API inserts an order inside a transaction and enqueues a "send receipt" job before the commit. Sometimes the worker logs "order not found". Why?
Discussion 0
Join free to post in the discussion.
Related questions
- Atomicity in a money transferBackend Developer
- Slow email during signupBackend Developer
- What atomicity guaranteesBackend Developer
- Queue versus topicBackend Developer
- Why put a queue between servicesBackend Developer
- What a RabbitMQ exchange doesBackend Developer
- Direct exchange routingBackend Developer
- Topic exchange wildcardsBackend Developer