In this chapter, we discussed implementing and handling transactions in a microservices architecture; in particular, we covered the ACID principle, XA transactions, application compensations, and the saga pattern. We implemented an example of handling transactions using Narayana as an implementation of LRA specifications.
In the next chapter, we will discuss container technology, and how it can help developers build microservice infrastructures.