admin管理员组文章数量:1123598
I have the following use case:
I have a message called CreditCardStatusChanged
, which looks like this:
public class CreditCardStatusChanged
{
public required int CardId { get; init; }
public required CreditCardStatus NewStatus { get; init; }
}
public enum CreditCardStatus
{
Requested,
Issued,
Active,
Blocked,
Lost,
Stolen,
Destroyed,
Expired,
//etc...
}
I also have a consumer CreditCardStatusChangedConsumer
:
public class CreditCardStatusChangedConsumer : IConsumer<CreditCardStatusChanged>
{
public Task Consume(ConsumeContext<CreditCardStatusChanged> context)
{
//logic for changing credit card status
}
}
Would it be possible to ensure that messages for the same card ID are executed in the exact order they were published, but still have parallel consumption for different card IDs?
FYI: I am using RabbitMQ
transport.
Thanks!
本文标签: cIs it possible to process MassTransit messages for specific parameter sequentiallyStack Overflow
版权声明:本文标题:c# - Is it possible to process MassTransit messages for specific parameter sequentially? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736580061a1944937.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论