• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Spring Microservices in Action: Transaction management in Spring-based microservices

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author
Posts: 93
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pranav,

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.

  Thanks,
      John
 
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
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic