3 ms·
dralley is saying your queue push and database write aren't transactional. You have to be ok suffering some small % of message loss or messages sent without a d
by jvans 3y ago
dralley is saying your queue push and database write aren't transactional. You have to be ok suffering some small % of message loss or messages sent without a database commit
- nostrebored 3y agoDepends on your queue semantics, ie is it just an at least once delivery or is there an ack back to the queue service. If there is a two phase process then you just need idempotence and can safely transact with the db.
- jvans 3y agoIt doesn't matter what your queue semantics are. If it's not part of the transaction, delivery and push cannot be guaranteed to be atomic.