Using the Saga pattern in Microservice transactions

Click for: original source

Using the microservices architecture has many benefits. It has become the norm for many large-scale applications. However, Microservices also comes with several challenges. One such challenge is handling transactions that span across multiple services. By Chameera Dulanga.

Therefore, we need a centralized communication and coordination mechanism to ensure all the transactions are completed successfully, and that’s where the Saga pattern comes in.

So, in this article, author will discuss how we can overcome this by using Saga Pattern:

  • Why we need Saga Pattern?
  • Introduction to Saga Pattern
  • What is Saga Execution Controller?
  • Implementing Saga Pattern
    • Orchestration-based Saga
    • Choreography-based Saga
  • Build with independent components, for speed and scale

In this article, author discussed what is Saga pattern is and different approaches for implement it. The Saga pattern’s main advantage is to maintain data consistency when transactions span across Microservices. Good read!

[Read More]

Tags devops software-architecture microservices app-development