Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveMQ: Openwire vs AMQP vs Stomp

ActiveMQ is a Message Broker that supports many different protocols such as Openwire, AMQP and Stomp. It is really confusing to know:

  • what are the differences between using Openwire and AMQP as a base protocol to send and receive messages in the project?
  • what are the merits and demerits of any of those protocols over each other?
  • Is this possible to use them in a same machine simultaneously?
  • Is there any possibility to send a message from the browser using Stomp and receive that message in the server using two other protocols?
like image 582
moha Avatar asked Dec 20 '15 14:12

moha


People also ask

Does ActiveMQ use AMQP?

ActiveMQ supports the AMQP 1.0 protocol which is an OASIS standard. Available from ActiveMQ version 5.8 onward.

What is AMQP ActiveMQ?

AMQP is a specification of a wire-level protocol for client to message broker communication. It is not a messaging system like ActiveMQ, but just a messaging protocol. ActiveMQ now implements AMQP 1.0! ActiveMQ also supports other open wire protocols: OpenWire, a fast binary format.

What is the difference between JMS and AMQP?

AMQP is a protocol. JMS is a standard API. AMQP only uses and supports binary data type. JMS supports five data types named MapMessage, ObjectMessage, Text message, StreamMessage and BytesMessage.

What is the protocol used by Artemis ActiveMQ?

Stomp. Stomp is a text-orientated wire protocol that allows Stomp clients to communicate with Stomp Brokers. Apache ActiveMQ Artemis now supports Stomp 1.0, 1.1 and 1.2. Stomp clients are available for several languages and platforms making it a good choice for interoperability.


1 Answers

For 1 and 2, maybe these pages are helpful:

  • openwire vs amqp, Which would perform better

  • http://activemq.2283324.n4.nabble.com/Does-the-jms-vs-amqp-comparison-article-have-any-feedback-from-activemq-td4658207.html

  1. yes, a single ActiveMQ instance can provide all protocols at the same time
  2. yes, see AMQP & Openwire - Activemq broker and 2 different consumers
like image 86
mjn Avatar answered Sep 18 '22 14:09

mjn