Summary
In this chapter, we learned about the distributed transaction problem with microservices and how to solve this using eventual consistency. We learned how to use the compensation pattern to correct failures in eventual consistency scenarios and reverse actions to simulate rollback behavior. We then created topic and subscription pairs that we need for our application to run and examined how eventual consistency and the compensation pattern are implemented in our application. Finally, we built, deployed, and tested our application.
In the next chapter, we will learn how to take our container images and orchestrate them in Google Kubernetes Engine.