[英]Control queue concurrency by tenant in multi-tenancy system
I have a multi-tenancy system and need to guarantee FIFO (first-in-first-out) processing of queued messages by tenant, ie each tenant would get its own MaxConcurrentCalls = 1
. 我有一个多租户系统,需要确保租户对排队的消息进行FIFO(先进先出)处理,即每个租户将获得自己的
MaxConcurrentCalls = 1
。
To be done in Azure and technology not fixed. 要在Azure中完成,并且技术不固定。
I know this could be achieved by creating a separate WebJob for each tenant, but that limits scalability. 我知道可以通过为每个租户创建一个单独的WebJob来实现,但这限制了可伸缩性。
Are there any other ways to achieve such a behaviour? 还有其他方法可以实现这种行为吗?
Since you mentioned Service Bus, I suggest 既然您提到服务总线,我建议
This way you should be able to process messages one-by-one and in-order per tenant, but multiple tenants in parallel. 这样,您应该能够按租户一个一个地,按顺序处理消息,但是可以并行处理多个租户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.