为什么微服务分布式事务的模式被命名为SAGA?

huangapple go评论70阅读模式
英文:

Why the pattern for microservices distributed transactions named as SAGA?

问题

我已经研究了用于在分布式事务期间在微服务中维护数据库一致性的各种SAGA模式(编排,编排)。

但是我无法将上下文中的文字“SAGA”与字面意思联系起来。

为什么它被命名为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 ?

答案1

得分: 29

"Saga" 不是一个缩写。术语“saga”首次在1987年的一份出版物中被定义。它还提到它是由布鲁斯·林赛提出的。

在它们的原始版本中,术语saga指的是长寿命事务(LLT)。

如果LLT可以被编写为可以与其他事务交错的事务序列,那么它就是一个saga。

选择这个词本身的原因没有透露。
也许这个词"saga"的一个文学意义是指:

一个长篇、详细的相互联系事件的故事

英文:

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

答案2

得分: 5

这个术语 "saga" 指的是长寿命事务 (LLT)。我们假设它是缩写(在某种程度上并不理想)。因此,从微服务的角度来看,你可以将其理解为Segregated Access of Global Atomicity。

英文:

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

huangapple
  • 本文由 发表于 2020年8月9日 02:39:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/63319018.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定