Rabbitmq RPC(request-reply) using springboot

19 Views Asked by At

i want to implement the request-reply pattern for microservices communication using RabbitMQ. However, the issue is that every internal call creates a new queue, and by default, the queue size in RabbitMQ is 30MB. In your architecture, there are 600 internal calls, so: 600 * 30 MB = 18000 MB = 1.8 GB

Is it a best practice to create that many queues?

so how i can avoid that much queue.

1

There are 1 best solutions below

1
Artem Bilan On

You can look into using an amq.rabbitmq.reply-to instead: https://docs.spring.io/spring-amqp/reference/amqp/request-reply.html#direct-reply-to