Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

AMQP (Advanced Message Queueing Queuing Protocol) is an open protocol for fast asynchronous message transfer of messages between applications on high speed with minimal delay

To maintain connection The RabbitMQ message broker is used to maintain connections with external services via this protocol the RabbitMQ message broker is used. Message brokers create a two-way connection with each application system of applications. Through this connection messages are transmitted, they This connection is used to transmit messages, the messages are routed to the corresponding destination points.

AMQP is based on three notionsconcepts:

  • Message – is a unit of transmitted data, its main part (content) is not interpreted by the server in any way. Structured headings may can be attached to the a message.
  • Exchange – an entity where the messages are directed into it. However messages are sent to but not stored in the exchangethere.
  • Queue – here a holding location where the messages are stored until taken by the a consumer takes them. The A consumer always takes the messages from one or several queues.
Processing

Process sequence


  1. All messages, generated by the producer, are first accepted in the exchange.
  2. Here they are distributed between the queues. Bindings are used to send messages to the corresponding queues.
    • Sent messages remain in this queue their queues until the consumer connects and receives the messagethem.
  3. The consumer receives the messagemessages.
  4. Delivery AMQP implements a delivery verification mechanism is implemented in AMQP: a message is not removed from a its queue until receipt confirmation an acknowledgement is received from the consumer.
    • In case of negative responseIf the response is negative, the message may be resent sent again or removed from its queue, depending on the producer's configuration settings during sending of the message.
Connecting to

Connect to a queue


For integration and sending of To integrate and send messages through the RabbitMQ broker, set up a queue in the system:

  1. Navigate to External Queues → Rabbit RabbitMQ providers.
  2. Click Create New and fill in the required fields.
  3. Click Save or Save and Exit.

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 to in the format example.rucom 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 the a queue, create a server script for message processing server script using the SimpleExternalRabbitMQ class.

Table of Contents
absoluteUrltrue
classfixedPosition
printablefalse