Failed to Create Cookie file RabbitMQ in Windows

Set the home drive to some dir in the dos shell before executing the cli. Create a startup file, e.g start-rabbit.bat, with contents below. set HOMEDRIVE=C:/conf/rabbitmq :: Or your favorite dir rabbitmq-plugins.bat enable rabbitmq_management Use a folder in C drive c:/conf/rabbitmq. The rabbitmq system will write the cookie file there. It is a good idea … Read more

Cannot enable rabbitmq-management plugin on Windows

I faced the same problem and my investigations led me to https://stackoverflow.com/a/34538688 which helped me solve it. After following the steps in that answer, start the service and the problem should be solved. Basically, the problem is caused by the RabbitMQ installer not registering the service correctly.

Message broker vs. MOM (Message-Oriented Middleware)

An overview – A protocol – A set of rules. AMQP – AMQP is an open internet protocol for reliably sending and receiving messages. MOM (message-oriented-middleware) – is an approach, an architecture for distributed system i.e. a middle layer for the whole distributed system, where there’s lot of internal communication (a component is querying data, … Read more

RabbitMQ C# connection trouble when using a username and password

It seems that I have found a solution to my own problem. The following code works: ConnectionFactory factory = new ConnectionFactory(); factory.UserName = “user”; factory.Password = “password”; factory.VirtualHost = “https://stackoverflow.com/”; factory.Protocol = Protocols.FromEnvironment(); factory.HostName = “192.168.0.12”; factory.Port = AmqpTcpEndpoint.UseDefaultPort; IConnection conn = factory.CreateConnection(); Thanks for listening and perhaps this at least could be useful to … Read more

Explain AsyncEventingBasicConsumer behaviour without DispatchConsumersAsync = true

The answer actually in your question. Yes, it is about design. The documentation explains and gives small example about async pattern. The client provides an async-oriented consumer dispatch implementation. This dispatcher can only be used with async consumers, that is, IAsyncBasicConsumer implementations. In order to use this dispatcher, set the ConnectionFactory.DispatchConsumersAsync property to true So … Read more

Maximize throughput with RabbitMQ

For best performance in RabbitMQ, follow the advice of its creators. From the RabbitMQ blog: RabbitMQ’s queues are fastest when they’re empty. When a queue is empty, and it has consumers ready to receive messages, then as soon as a message is received by the queue, it goes straight out to the consumer. In the … Read more

RabbitMQ, Erlang: How to “make sure the erlang cookies are the same”

For what it’s worth, in 2018, the docs are WRONG. In windows 10, the default location of the cookie file appears to be: C:\Windows\System32\config\systemprofile and NOT C:\Windows as the docs say. The best thing to do is to look at the log file, which is typically located in your user %AppData%\Roaming\RabbitMQ\log directory. The log file … Read more

How to communicate Web and Worker dynos with Node.js on Heroku?

As the high-level article on background jobs and queuing suggests, your web dynos will need to communicate with your worker dynos via an intermediate mechanism (often a queue). To accomplish what it sounds like you’re hoping to do follow this general approach: Web request is received by the web dyno Web dyno adds a job … Read more