Reactive transactions with MongoDB 4

Starting with version 4.0, MongoDB supports multi-document transactions. This allows us to experiment with reactive transactions in the new version of MongoDB. Previously, Spring Data only had reactive connectors to databases that did not support transactions. Now, the situation has changed. As reactive transactions are a novelty in the reactive persistence area, which itself is pretty new, all the following claims and code examples should be treated as some of the possibilities of how reactive transactions could be implemented in the future. At the time of writing, Spring Data does not have any features that apply reactive transactions at the service or repository levels. However, we may operate with ...

Get Hands-On Reactive Programming in Spring 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.