Understanding AMQP
来源:互联网 发布:金鹰汇淘宝是正品嘛 编辑:程序博客网 时间:2024/05/20 11:50
原文链接:https://spring.io/understanding/AMQP
Understanding AMQP
AMQP (Advanced Message Queueing Protocol) is an openly published wire specification for asynchronous messaging. Every byte of transmitted data is specified. This characteristic allows libraries to be written in many languages, and to run on multiple operating systems and CPU architectures, which makes for a truly interoperable, cross-platform messaging standard.
Advantages of AMQP over JMS
AMQP is often compared to JMS (Java Message Service), the most common messaging system in the Java community. A limitation of JMS is that the APIs are specified, but the message format is not. Unlike AMQP, JMS has no requirement for how messages are formed and transmitted. Essentially, every JMS broker can implement the messages in a different format. They just have to use the same API.
Thus Pivotal has released a JMS on Rabbit project, a library that implements the JMS APIs but uses RabbitMQ, an AMQP broker, to transmit the messages.
AMQP publishes its specifications in a downloadable XML format. This availability makes it easy for library maintainers to generate APIs driven by the specs while also automating construction of algorithms to marshal and demarshal messages.
These advantages and the openness of the spec have inspired the creation of multiple brokers that support AMQP, including:
- RabbitMQ
- ActiveMQ
- Qpid
AMQP and JMS terminology
- JMS has queues and topics. A message sent on a JMS queue is consumed by no more than one client. A message sent on a JMS topic may be consumed by multiple consumers. AMQP only has queues. While AMQP queues are only consumed by a single receiver, AMQP producers don't publish directly to queues. A message is published to an exchange, which through its bindings may get sent to one queue or multiple queues, effectively emulating JMS queues and topics.
- JMS and AMQP have an equivalent message header, providing the means to sort and route messages.
- JMS and AMQP both have brokers responsible for receiving, routing, and ultimately dispensing messages to consumers.
- AMQP has exchanges, routes, and queues. Messages are first published to exchanges. Routes define on which queue(s) to pipe the message. Consumers subscribing to that queue then receive a copy of the message. If more than one consumer subscribes to the same queue, the messages are dispensed in a round-robin fashion.
- Understanding AMQP
- AMQP
- AMQP
- AMQP
- AMQP
- AMQP
- AMQP
- AMQP
- Understanding
- AMQP介绍
- AMQP协议
- AMQP协议
- AMQP协议
- AMQP协议
- AMQP协议
- Learning AMQP
- AMQP协议
- AMQP协议
- 几种图像变换
- 开源实时日志分析
- 优先使用TimeUnit类中的sleep()
- 先显示默认图片·,等到应该显示的图片加载完成之后再显示加载之后的图片
- hihaCoder1042—跑马圈地(枚举)
- Understanding AMQP
- 第十五章:使用Canvas绘图(2D上下文)
- java面试必备
- 一些实用网址 ubuntu截图+屏蔽一些网址+windows7+ubuntu双系统+泰语打字练习
- 16. 3Sum Closest
- java面试必备
- [分享]浅谈电商库存模型
- Jersey—— 一个基于Rest风格的Web Service开发框架
- React学习 -- React源码(1)