rabbitmq - Is it good practice to create AMQP queues manually or programmatically? -
i'm in process of implementing various remote methods/rpcs on top of amqp (rabbitmq in particular). when worker (or client) comes online, could, in theory, declare (create) queue on exchange. other approach start using queue , assume exists on exchange.
which approach more common? creating queues manually has higher administrative cost, maybe; however, can result in more consistent environment if decouple queue management queue usage.
it depends requirement. if have fixed number of queues , dont need generated dynamically, go manual. example : integration application , know have 3 consumers a,b,c manually create 3 queues. example in chat application every logged in user want create queue, in case queues should created programatically. , in case manual creation, have more control implement permissions , acls.
Comments
Post a Comment