Can't you put the message creation and the marked read operation into the same transaction scope?
Our code is way too generic for that.
We kept things really broken up into microtransactions. When we need to do away with PostgreSQL and put the bulk of the documents into something else, it will be relatively easy to do so.
@Velocio started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Can't you put the message creation and the marked read operation into the same transaction scope?