AMQP

Protocolos

Definição

Advanced Message Queuing Protocol. Um padrão aberto para middleware orientado a mensagens que fornece entrega de mensagens assíncrona e confiável com recursos como enfileiramento, roteamento e publicação-assinatura. Usado pelo RabbitMQ e Azure Service Bus.

AMQP's Broker Model

Advanced Message Queuing Protocol is an open standard for message-oriented middleware. Unlike MQTTMessage Queuing Telemetry Transport. A lightweight publish-subscribe messaging protocol designed for constrained devices and low-bandwidth networks. Widely used in IoT for sensor data collection and device control.'s topic-centric pub-sub, AMQP uses a richer routing model: producers publish to exchanges, which apply routing rules (direct, fanout, topic, headers) to deliver messages to queues, from which consumers pull. This indirection allows sophisticated message routing without changing producers or consumers. RabbitMQ is the most widely deployed AMQP broker.

Reliability and Ordering Guarantees

AMQP runs over TCPTransmission Control Protocol. A reliable, connection-oriented transport protocol that guarantees ordered, error-checked delivery of data through three-way handshakes, acknowledgments, and retransmission. The foundation of HTTP, SSH, and most internet services. and provides strong delivery semantics:

Feature Benefit
Publisher confirms Broker acknowledges receipt before producer continues
Consumer acknowledgments Message requeued if consumer dies before acking
Dead-letter exchanges Failed messages routed for inspection
Message TTL and priority Fine-grained queue behavior

These guarantees make AMQP the right choice for financial transactions, order processing, and any workflow where MQTTMessage Queuing Telemetry Transport. A lightweight publish-subscribe messaging protocol designed for constrained devices and low-bandwidth networks. Widely used in IoT for sensor data collection and device control.'s best-effort delivery is insufficient.

Protocol Versions and Security

AMQP 0-9-1 is what RabbitMQ implements; AMQP 1.0 (ISO/IEC 19464) is a different protocol used by Azure Service Bus and Apache ActiveMQ Artemis. AMQP connections are authenticated with SASL (username/password, certificate-based, or LDAPLightweight Directory Access Protocol. A protocol for accessing and maintaining distributed directory information services (such as Active Directory) over TCP/IP. Used for centralized authentication and user directory lookups.-backed). Broker management APIs should be secured with SSL/TLSSecure Sockets Layer / Transport Layer Security. Cryptographic protocols that provide encrypted, authenticated communication over a network. SSL is deprecated; modern implementations use TLS 1.2 or TLS 1.3. and access restricted to trusted network segments — an exposed RabbitMQ management port (15672) is a frequent Penetration TestingAn authorized simulated cyberattack on a system to evaluate its security posture and identify vulnerabilities before real attackers do. Pen tests range from automated vulnerability scans to full red-team engagements. finding.

Termos relacionados

Mais em Protocolos