RabbitMQ and message priority

The answers on this question are out-of-date. As of RabbitMQ 3.5.0, there is now in-core support for AMQP standard per-message priorities. The documentation has all the gory details, but in short: You need to define the queue’s priority range at the time the queue is created; Messages without a priority set get a priority of … Read more

rabbitmq refusing to start

Rabbitmq is set to start automatically after it’s installed. I don’t think it is configured run with the service command. To see the status of rabbitmq sudo rabbitmqctl status To stop the rabbitmq sudo rabbitmqctl stop (Try the status command again to see that it’s stopped). To start it again, the recommended method is sudo … Read more

Microservices Why Use RabbitMQ?

In Microservices architecture you have two ways to communicate between the microservices: Synchronous – that is, each service calls directly the other microservice , which results in dependency between the services Asynchronous – you have some central hub (or message queue) where you place all requests between the microservices and the corresponding service takes the … Read more

RabbitMQ difference between exclusive and auto-delete?

Well, it is true that exclusive queues will auto-delete when the consumer disconnects (see the documentation pasted below). However, there are cases when you want queues to be non-exclusive, yet still auto-delete (for example, if I want to add another consumer). exclusive Exclusive queues may only be accessed by the current connection, and are deleted … Read more

Topic Exchange vs Direct Exchange in RabbitMQ

Assuming both models are being considered to be implemented using one broker running, there’s little difference that I can see. Option 2 seems more common in the real world for solving this kind of routing problem (at least in my anecdotal experience) and it’s exactly the challenge that Topic Exchanges exist to solve. The only … Read more

RabbitMQ use of immediate and mandatory bits

The immediate and mandatory fields are part of the AMQP specification, and are also covered in the RabbitMQ FAQ to clarify how its implementers interpreted their meaning: Mandatory This flag tells the server how to react if a message cannot be routed to a queue. Specifically, if mandatory is set and after running the bindings … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)