4 ms·
Queue is not the holy grail, especially if you want to put something on the queue during the db transaction. Be aware, that once you do I/O (some RPC or queue i
by eddd 9y ago
Queue is not the holy grail, especially if you want to put something on the queue during the db transaction. Be aware, that once you do I/O (some RPC or queue interaction) you loose the ACID in the db, you will make the system much less reliable this way.
The way to do this, it to publish on queue _after_ transaction, but also be sure that the action won't be lost in the process.
https://martin.kleppmann.com/2015/04/23/bottled-water-real-time-postgresql-kafka.html https://martin.kleppmann.com/2015/04/23/bottled-water-real-t...
http://dataintensive.net/ http://dataintensive.net/