I'm looking at converting some existing applications into a more micro-service architecture framework. How does one handle transaction management in this architecture and does Spring provide anything specifically to help implementing transaction management across microservices.
Spring Cloud does not provide anything of the box for handling transaction management across multiple microservices. In a microservice environment you are usually going to have to manage your own transactions and use a routing slip pattern or state database to keep track of your data changes. If an exception occurs, you have to work through the service orchestration of unwinding changes.
There are good patterns for modeling and building this out. However, I felt it was out of scope for this book because I was focused really just on getting started with Spring Microservices and using Spring Cloud to handle many of the operational capabilities needed to get an your application up and running.
John Carnell - Senior Engineer, Genesys PureCloud Division
Author of Spring Microservices in Action
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop