英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论