---
title: "ActiveMQ vs AMQP "
author: "kimmking"
date: "2012-01-15T22:55:49Z"
tags: []
categories: ["企业架构"]
slug: "activemq-vs-amqp"
draft: false
lastmod: "2012-01-15T22:57:02Z"
id: 1347733
url: "https://setting.iteye.com/blog/1347733"
---

[http://activemq.apache.org/how-does-activemq-compare-to-amqp.html](http://activemq.apache.org/how-does-activemq-compare-to-amqp.html)

 

 

AMQP(*Advanced Message Queue Protocol*)是一个消息client和broker交互的规范。是一个关于client到消息broker的wire-level协议通信的规范。不像ActiveMQ一样是一个消息系统，而仅仅是一个消息协议。

 

ActiveMQ的目标是最终会支持AMQP 1.0规范，以及其他开放的协议。

ActiveMQ已经支持的两种open wire 协议：

- [OpenWire](http://activemq.apache.org/openwire.html "OpenWire"), 一种非常快的二进制协议
- [Stomp](http://activemq.apache.org/stomp.html "Stomp"), 一种简单方便的基于文本的协议

Through these protocols, ActiveMQ can support clients in C, C++, C#, Ruby, Python, Perl, PHP, Pike etc. AMQP is most similar to OpenWire, because both OpenWire and AMQP are designed for high performance messaging, through a binary (rather than text-based) format. As a text-based format, STOMP is much easier to implement, but gives somewhat slower performance.

 

通过这些协议，ActiveMQ可以支持各种环境下的client，比如C, C++, C#, Ruby, Python, Perl, PHP, Pike等等。

AMQP与OpenWire非常相似，因为他们都是被设计来通过二进制格式（比文本要高效），支持高性能的消息传递。

作为基于文本的格式，STOMP的实现非常简单，性能也比较低。