userver-framework / userver

Production-ready C++ Asynchronous Framework with rich functionality
https://userver.tech
Apache License 2.0
2.37k stars 275 forks source link

MongoDB: add support of transactions #668

Open DenisRazinkin opened 1 month ago

DenisRazinkin commented 1 month ago

For scenarios that require atomicity of read and write operations across multiple documents (within a single collection or multiple collections), MongoDB supports distributed transactions. Transactions are helpful where partial execution across multiple collections can result in non-consistent data condition.

ArkadyRudenko commented 1 month ago

Yes, transactions are useful but there is no such goal in our plans for the near future. Maybe we will try to impl it in the end of Q3 but I don`t promise

PRs are welcome :)