Worker pools and multi-tenant queues with RabbitMQ

前端 未结 4 1490
悲&欢浪女
悲&欢浪女 2021-02-05 14:28

I work on a web application that is a multi-tenant cloud based application (lots of clients, each with their own separate \"environment\", but all on shared sets of hardware) an

4条回答
  •  时光取名叫无心
    2021-02-05 14:43

    I don't understand why you don't use RabbitMQ's vhosts and have your app login to RabbitMQ and authenticate on a separate connection for each user.

    This doesn't mean that you can't have a worker supervisor that assigns workers to one user or another. But it does mean that all messages for each user are processed by entirely separate exchanges and queues.

提交回复
热议问题