Message middleware (6) - five protocols supported by activeMQ

[Turn, non-original]

 

The example with activeMQ5.9. version provides simple demos of 5 protocols, these 5 protocols are: AMQP, MQTT, OpenWire, Stomp , ws can roughly get these 5 protocols by running the demo of these 5 protocols The performance comparison implemented in activeMQ:

?
1
2
3
4
5
6
7
8
9
10
11
amqp
Received  10001  in  6.58  seconds
 
mqtt
Received  10000  in  2.69  seconds
 
openwire
Received  10001  in  8.87  seconds
 
stomp
Received  10001  in  14.17  seconds

It can be seen that the implementation of the mqtt protocol is the fastest, and the implementation of the stomp protocol is the slowest.

ws is not tested, this should be slower.

A brief introduction to these five protocols is attached:

AMQP protocol:

That is, Advanced Message Queuing Protocol, an application layer standard advanced message queuing protocol that provides unified message service, is an open standard of application layer protocol, designed for message-oriented middleware. Clients and message middleware based on this protocol can transmit messages, and are not limited by different client/middleware products and different development languages.

MQTT protocol:

MQTT (Message Queuing Telemetry Transport, Message Queuing Telemetry Transport) is an instant messaging protocol developed by IBM, which may become an important part of the Internet of Things. The protocol supports all platforms and can connect almost all Internet-connected objects to the outside world, and is used as a communication protocol for sensors and actuators (such as connecting houses through Twitter).

OpenWire protocol: The OpenWire protocol has no corresponding introduction on the Internet. It seems to be a protocol defined by activeMQ itself. The official website introduces it as follows:

OpenWire is our cross language Wire Protocol to allow native access to ActiveMQ from a number of different languages and platforms. The Java OpenWire transport is the default transport in ActiveMQ 4.x or later. For other languages see the following...

stomp协议:STOMP,Streaming Text Orientated Message Protocol,是流文本定向消息协议,是一种为MOM(Message Oriented Middleware,面向消息的中间件)设计的简单文本协议。

 

ws协议:即websocket协议,基于h5

官方示例中,5种都有

 

 <transportConnectors>
            <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
        </transportConnectors>
 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326249512&siteId=291194637