RabbitMq producer consumer over different networks

266 views
Skip to first unread message

Namita Jaokar

unread,
Sep 20, 2022, 3:33:56 AM9/20/22
to rabbitmq-users
Hi ,

I am currently trying to understand how and what configurations are required in rabbitmq if my producer and consumer services are over different networks.
Can I have my consumer and the rabbitmq server at same network and producer over different network in this case?
I am trying to understand this scenario by implementing it in spring-boot.

Could you please advise/suggest on above or any links that would help me further in the research of the scenario.

Thanks & Regards,
Namita 

Arnaud Cogoluègnes

unread,
Sep 20, 2022, 8:40:17 AM9/20/22
to rabbitmq-users
I'm not sure I fully understand the question, but producers and consumers need to connect to the same RabbitMQ cluster if they want to exchange messages (unless there's some kind of application like the shovel plugin that moves messages between 2 clusters).

If you're asking if it's possible to connect to different RabbitMQ clusters in the same Spring Boot application, you should ask on the appropriate support channel [1].

Namita Jaokar

unread,
Sep 21, 2022, 3:06:10 AM9/21/22
to rabbitmq-users
Hi  Arnaud,

My scenario is if the producer is sending message to the consumer through same cluster or even if there is a single rabbitmq server for communication between the producer and consumer over different networks.

Example : My producer service in this case will be on my client's network and it wants to send messages to the consumer which is at my end. I wanted to understand what configurations/changes are required this case, if the rabbitmq server is at my network along with the consumer and the producer is at a different network (my client's network) .

I have more questions in this case:
  • How will I setup my rabbitmq server if both producer and consumer are at different networks or at different systems.
  • If both rabbitmq server and the consumer service is at the same system having same network while my producer is at a different system having a different network-(Not the one consumer service will be having). How will rabbitmq behave in this case. Do I need to setup rabbitmq at the client network as well?

Please let me know if I was able to explain on my queries well. I am still in the Research phase of rabbitmq , Apologies if there's anything silly in my questions

Thanks & Regards,
Namita

Soumen Mukherjee

unread,
Sep 21, 2022, 12:03:41 PM9/21/22
to rabbitm...@googlegroups.com
Hi ,


See as long as your server , producer and consumer are accessible over the network and tere exist a path between rabbit mq - producer and rabbitMQ - consumer. Things should be fine , do mind the ports as well.


Hope this helps.

Soumen

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/68323161-3295-41e6-82ab-89604d3f4e4an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages