A
A
Alexey2020-01-30 00:58:37
RabbitMQ
Alexey, 2020-01-30 00:58:37

What is the exchange for?

Hello! I'm trying to learn RabbitMq, but point-blank I can't understand what the exchange is for. I realized that this is, as it were, a point through which all messages pass and which distributes the task among the queues. But I can't figure out why. Why does the message have to go through it. But what most likely confuses me is that I can't imagine situations where I would have to change her name or create several of them.
Clarify please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2020-01-30
@dzheka3d

In short, the exchanger is the publishing point, the queues are the consumers. A simple example, there is a user authorization service, and as a user has passed authorization, he publishes a message to the UserLogin exchanger, and there are N services that may need this information, but the authorization service should not care how many of them, who wants to receive now, who has already refused , it just posts a message. That is, the publishing service should be as little concerned as possible with the architecture of the entire system, since today it can be one, and tomorrow - another.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question