事务性发件箱和收件箱,具有乐观并发控制

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

Transactional outbox and inbox with optimistic concurrency control

问题

Is it possible to configure MassTransit transactional outbox and inbox with optimistic concurrency control instead of locks? In my database, I have transactions with optimistic concurrency control, and I want messages to be saved as part of this transaction - how can I do that? I suppose I cannot have both locks and optimistic concurrency in the same transaction? I'm using MSSQL.

英文:

is it possible to configure MassTransit transactional outbox and inbox with optimistic concurrency control instead of locks? In my database I have transactions with optimistic concurrency control and I want send messages to be saved as part of this transaction - how can I do that? I suppose I cannot have in the same transaction both locks and optimistic conccurency? I'm using mssql

答案1

得分: 0

锁是必需的,以确保消费者语义的确切一次性。事务性出箱是基于这一考虑而设计的,因此需要它。

英文:

Locks are required to ensure exactly once consumer semantics. The Transactional Outbox was designed with this in mind, and therefore requires it.

huangapple
  • 本文由 发表于 2023年5月24日 20:43:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/76323668.html
匿名

发表评论

匿名网友

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

确定