AMQP (Advanced Message Queuing Protocol) is an open protocol for fast asynchronous message transfer between applications with minimal delay.
The RabbitMQ message broker is used to maintain connections with external services via this protocol. Message brokers create a two-way connection with each system of applications. This connection is used to transmit messages, the messages are routed to the corresponding destination points.
AMQP is based on three concepts:
To integrate and send messages through the RabbitMQ broker, set up a queue in the system:
Field | Mandatory | Description |
---|---|---|
Name | Y | Specify a name for the newly created message queue. This queue name will be used to send messages from the API. |
Host name | Y | Enter a RabbitMQ host name to connect to in the example.com format. |
Port | Y | Specify the server connection port. |
Virtual host | N | Specify the host designated in the RabbitMQ server settings. |
Connection time out | N | Set the RabbitMQ server connection time out. |
Username | Y | Specify a user login for the RabbitMQ server connection. |
Password | Y | Specify a user password for the RabbitMQ server connection. |
To send messages to a queue, create a server script for message processing using the SimpleExternalRabbitMQ class.