Skip to Content
Hands-On Reactive Programming in Spring 5
book

Hands-On Reactive Programming in Spring 5

by Oleh Dokuka, Igor Lozynskyi
October 2018
Intermediate to advanced
556 pages
15h 18m
English
Packt Publishing
Content preview from Hands-On Reactive Programming in Spring 5

Distributed transactions with the SAGA pattern

As it was stated previously in this chapter, distributed transactions may be implemented in different ways. Of course, this statement is also true for persistence layers implemented with the reactive paradigm. However, given that Spring Data supports reactive transactions only for MongoDB 4 and that aforementioned transactional support is not compatible with Java Transaction API (JTA), the only viable option for implementing distributed transactions within reactive microservices would be the SAGA pattern, which was described earlier in this chapter. Additionally, the SAGA pattern has good scalability characteristics and suites better for Reactive Systems than alternative patterns that require ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring Microservices in Action, Second Edition

Spring Microservices in Action, Second Edition

John Carnell, Illary Huaylupo Sanchez

Publisher Resources

ISBN: 9781787284951Supplemental Content