What transport protocol does Open MQ use?

I heard an IBM guy talk about MQTT , and he said that MQTT is the easiest messaging protocol to date. His argument was that the smallest overhead incurred for a single message is 2 bytes. However, have I heard the same thing (2 bytes of overhead) about HTML5 WebSockets too? In any case, as I plan to use Open MQ as a JMS provider for my messaging application, which protocol my provider is using has become of interest to me. I cannot find the answer to this question, and I even looked at the Open MQ documentation and GlassFish documentation that use Open MQ as a JMS provider. Some blogs, etc. AMQP says on the Internet, but I can’t find a solid link to answer that expression up.

What protocol does Open MQ use and how do you know?

+4
source share
2 answers

I think you mix a few things: MQTT is an application layer protocol and uses TCP as a transport protocol. MQTT can also be used with Websockets as a transport. MQTT is, if you will, an easy alternative to JMS and AMQP.

AMQP is a popular and reliable alternative to JMS and is well suited for business and mission critical communications. It is very rich and widely used. Note that AMQP is a messaging protocol, and JMS is an API (which can even use AMQP as a transport). You can use AMQP directly in Java applications with libraries, for example RabbitMQ Java Client .

MQTT, on the other hand, is ideal for telemetry data and scenarios where you have many clients who communicate with one message broker, as well as low bandwidth usage, memory savings and battery life on clients.

JMS does not define any transport protocol (unlike MQTT), and here everything can be used. I personally think that TCP is also suitable here.

I do not know about OpenMQ, but for JMS and AMQP I can recommend ActiveMQ . There are several brokers in MQTT, including HiveMQ and Mosquitto .

Required Disclaimer: I'm a HiveMQ developer, so I'm probably a little biased; -)

+6
source

I think OpenMQ uses STOMP as Application Level Protocl. There is no other documentation that the OpenMQ protocol supports than STOMP.

Edit: A UMS protocol is found, and OpenMQ seems to use this by default. https://mq.java.net/4.3-content/ums/umsIntro.html

OpenMQ cannot use AMQP, so I would recommend RabbitMQ.

0
source

Source: https://habr.com/ru/post/1484853/


All Articles