RabbitMQ
Activating RabbitMQ
To effectively utilize RabbitMQ with the Evolution API for managing WhatsApp instances, it’s essential to activate RabbitMQ on each individual WhatsApp instance. This activation allows each instance to start receiving and processing AMQP (Advanced Message Queuing Protocol) queue requests that are specific to that particular WhatsApp instance.
In other words, for each WhatsApp instance where you want to use RabbitMQ, you need to ensure that RabbitMQ integration is enabled. This setup will allow the instance to communicate with the RabbitMQ server and handle its queue of messages and requests. Enabling RabbitMQ on each instance is crucial for proper distribution and management of messaging tasks across different WhatsApp instances in your system.
RabbitMQ setup for an individual instance
For developers who wants to use in their applications AMQP messaging system, you could use RabbitMQ for queue your instances actions.
To configure RabbitMQ for individual WhatsApp instances in the Evolution API, you can use the following endpoint:
This endpoint allows you to enable RabbitMQ and specify which events each WhatsApp instance should subscribe to in the AMQP queue. Below is an example of the JSON body for this endpoint:
When setting up RabbitMQ integration, adjust the events array in the JSON body to include only the events you want to subscribe to. Uncomment any event you wish to enable for RabbitMQ notifications.
Now you can send to your application the messages and consume them in RabbitMQ.
Checkout RabbitMQ environment variables here