T
T
topuserman2019-11-10 19:56:49
PHP
topuserman, 2019-11-10 19:56:49

How to create a consumer?

There is a server where rabbimq is deployed, different queues are configured (topic), and periodically some system adds messages to these queues. It's all up and running.
My task is to write costumers so that they read these messages from the queues.
I looked at the RabbitMQ documentation, analyzed all the examples from there - everything is clear.
But also, both in the official documentation and in other sources, they write that these are very simple examples, where many things are not taken into account, and this cannot be done in real projects.
It is not clear to me what exactly should be taken into account, what situations or processing?
Is it not enough to simply connect to RabbitMQ, declare a queue, and listen to the given queue and read messages?
If someone has examples of real, combat costumers, I will be grateful!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asdz, 2019-12-04
@asdz

The answer to your question is not limited to just "correctly creating" the consumer. The question is broader and affects such aspects as the choice of topology in accordance with the requirements for the task and the architecture of the system, ensuring the reliability of delivery, message idempotency, and failure handling logic. Some questions are described here https://www.rabbitmq.com/reliability.html . Others, you can find by googling or looking at github projects using rabbitmq. Since all these things depend on the task being solved, there is no definite one recipe for the correct "creation of a consumer", although there are best practices that you need to navigate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question