Wait... if you're sending some message to several peers, and you get that list of peers from a database... then how do you do... that? If you only get partway done, and you rollback the transaction and try again, then you'll send the message to some peers twice. But you can't save your place in the query, because if you rollback, then anything you save gets lost. One transaction per peer? A table of... peers that haven't got messages, which slowly empties?

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!