bowler icon indicating copy to clipboard operation
bowler copied to clipboard

How to make tenant aware for multi tenant application?

Open gwachhamit opened this issue 2 years ago • 3 comments

How can we make this package and rabbitmq multi-tenant aware for multi-tenant application?

I am having a great problem implementing rabbitmq with this package for multi tenant application.

gwachhamit avatar Jun 22 '22 12:06 gwachhamit

Hello @gwachhamit, You should be looking into Rabbitmq Virtual Hosts.

For multi-tenant support, your application would need to register a new Connection instance per vHost.

KinaneD avatar Jun 22 '22 13:06 KinaneD

@KinaneD I have create separate vHost per tenant. The problem is while consuming the message-event. Is there any way we can mention the rabbitmq credentials/vHost while consuming message-event. Lets say for this package we have command php artisan bowler:consume example_queue can we pass any argument to specify rabbitmq credentials/vHost?

gwachhamit avatar Jun 23 '22 11:06 gwachhamit

Hi @gwachhamit I would really appreciate if you can share a scenario or a use case of what are your expectations.

You can get the Virtual Host of a Connection like so. The RabbitMQ setup and/or configuration are instance related not message specific.

I would like to loop in @cerpusoddarne into this thread, I hope he does not mind, since I believe he is more familiar than I am with the subject.

KinaneD avatar Jun 23 '22 14:06 KinaneD