• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic