The Evolution API allows integration with RabbitMQ to manage events and message queues, facilitating efficient and scalable task communication and processing. Below, you will find information on how to configure RabbitMQ both globally and for individual instances.
With the new global configuration, it’s possible to centralize event processing in unified queues, rather than configuring separate queues for each instance. This simplifies event management as all system events are routed through specific queues based on the event type.
Here are the necessary environment variables to enable and configure RabbitMQ globally:
With global mode enabled (RABBITMQ_GLOBAL_ENABLED=true
), all events are queued in specific queues by event type rather than by instance. Here is a list of events you can activate globally:
MESSAGES_UPDATE
) will be queued in the same queue, regardless of the originating instance.While global configuration is recommended for centralizing event processing, it’s still possible to configure RabbitMQ for individual instances if segmentation by instance is needed.
To configure RabbitMQ for a specific WhatsApp instance in the Evolution API, use the following endpoint:
Here is an example of a JSON request body to configure events for a specific instance:
Remove unused events to optimize RabbitMQ resource usage.
When configuring RabbitMQ integration for individual instances, adjust the event array in the JSON body to include only the events relevant to that instance.
RabbitMQ configuration in the Evolution API offers flexibility to manage events centrally with global configuration or segmented by instance, depending on your system’s needs. Use the global configuration to simplify event management in complex environments, or configure it individually for more granular control.
For more details on RabbitMQ environment variables and other advanced configurations, consult the environment variables section.
The Evolution API allows integration with RabbitMQ to manage events and message queues, facilitating efficient and scalable task communication and processing. Below, you will find information on how to configure RabbitMQ both globally and for individual instances.
With the new global configuration, it’s possible to centralize event processing in unified queues, rather than configuring separate queues for each instance. This simplifies event management as all system events are routed through specific queues based on the event type.
Here are the necessary environment variables to enable and configure RabbitMQ globally:
With global mode enabled (RABBITMQ_GLOBAL_ENABLED=true
), all events are queued in specific queues by event type rather than by instance. Here is a list of events you can activate globally:
MESSAGES_UPDATE
) will be queued in the same queue, regardless of the originating instance.While global configuration is recommended for centralizing event processing, it’s still possible to configure RabbitMQ for individual instances if segmentation by instance is needed.
To configure RabbitMQ for a specific WhatsApp instance in the Evolution API, use the following endpoint:
Here is an example of a JSON request body to configure events for a specific instance:
Remove unused events to optimize RabbitMQ resource usage.
When configuring RabbitMQ integration for individual instances, adjust the event array in the JSON body to include only the events relevant to that instance.
RabbitMQ configuration in the Evolution API offers flexibility to manage events centrally with global configuration or segmented by instance, depending on your system’s needs. Use the global configuration to simplify event management in complex environments, or configure it individually for more granular control.
For more details on RabbitMQ environment variables and other advanced configurations, consult the environment variables section.