What is Saga pattern in Microservices?

The Saga pattern is a design pattern way to manage data consistency across microservices in distributed transaction scenarios. It is a sequence of transactions that updates each service and publishes a message or event to excess next transaction.

Saga pattern manage distributed transactions in a event diffeerent architecture.Originally will describe be research paper Princeton University in 1987. It describe as

Long -lived transactions (LLTs)

Hours or days
same database
fine-grained trasactions
compensating operations

extended to distributed system

Centralize transaction state
Message routing
failure compensation

Saga patter complete to use Social media platform all over World

Ajay K
Follow me