Aditya Rewari
Aditya Rewari

Reputation: 2687

Why the pattern for microservices distributed transactions named as SAGA?

I have gone through various SAGA patterns(Orchestration,Choreography), suggested for maintaining database consistency in microservices during distributed transactions.

But I am not able to relate the literal word SAGA in the context.

Why is it named as SAGA ?

Upvotes: 19

Views: 5931

Answers (2)

alex_noname
alex_noname

Reputation: 32163

Saga is not an abbreviation. The term “saga” was first defined in a 1987 publication. It also mentions that it was proposed by Bruce Lindsay.

In their original version, the term saga refers to Long Lived Transactions(LLT).

A LLT is a saga if it can be written as a sequence of transactions that can be interleaved with other transactions.

The reason for choosing the word itself is not disclosed. Perhaps one of the literary meanings of the word saga was meant:

a long, detailed story of connected events

Upvotes: 35

Tarun S. Pandey
Tarun S. Pandey

Reputation: 71

The term saga refers to Long Lived Transactions (LLT). Let's assume it as abbreviation (which is not preferable in some way). So, in terms of microservices, you can think of Segregated Access of Global Atomicity

Upvotes: 7

Related Questions