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 distributed transactions.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.239.182