![]() |
STOMP is the Simple (or Streaming) Text Orientated Messaging Protocol, formerly known as TTMP. It provides an interoperable wire format that allows STOMP clients to talk with any message broker asynchronously supporting the protocol. It is similar to HTTP, and works over TCP using the commands – CONNECT, SEND, SUBSCRIBE, UNSUBSCRIBE, BEGIN, COMMIT, ABORT, ACK, NACK, DISCONNECT. STOMP is a simple and easy-to-translate protocol. Many developers managed to write an STOMP client in just a couple of hours in their particular language, runtime, or platform into the STOMP network. So if the language/runtime we prefer does not offer a good enough STOMP client we can write one without any hassle. STOMP Client CommandsIn STOMP communication between client and server is through a “frame” consisting of a number of lines. The first line contains the command, followed by headers in the form <key>: <value> (one per line), followed by a blank line and then the body content, ending in a null character. Communication between server and client is through a MESSAGE, RECEIPT, or ERROR frame with a similar format of headers and body content. CONNECT
SEND
SUBSCRIBE
UNSUBSCRIBE
BEGIN
COMMIT
ACK
DISCONNECT
STOMP Server CommandsThe server will, on occasion, send frames to the client (in addition to the initial
ImplementationsBelow mentioned are the implementations of the STOMP Protocol STOMP ServersThese are some message servers that support STOMP:
STOMP Client
STOMP is also supported by the Spring Framework in module STOMP ReleasesThe latest version of the specification can be found at:
The older version of the specification are at: ConclusionSTOMP is simple and lightweight, with a wide range of language bindings. It allows you to expose messaging in a browser through WebSockets. This opens up some interesting possibilities—like updating a browser, mobile app, or machine in real-time with all types of information. FAQs on STOMP Protocol1. How does STOMP differ from other messaging protocols like MQTT or AMQP?
2. What are some common use cases for STOMP?
3. Which programming languages and platforms support STOMP?
|
Reffered: https://www.geeksforgeeks.org
Computer Networks |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 19 |