Abbreviation: | STOMP |
Purpose: | Message-oriented middleware |
Osilayer: | Application layer (Layer 7) |
Simple (or Streaming) Text Oriented Message Protocol (STOMP), formerly known as TTMP, is a simple text-based protocol, designed for working with message-oriented middleware (MOM). It provides an interoperable wire format that allows STOMP clients to talk with any message broker supporting the protocol.
The protocol is broadly similar to HTTP, and works over TCP using the following commands:
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
SEND destination:/queue/a content-type:text/plain hello queue a ^@
These are some MOM products that support STOMP:
A list of implementations is also maintained on the STOMP web site.
STOMP is also supported by the Spring Framework in module org.springframework:spring-websocket
. https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/socket/config/annotation/StompEndpointRegistry.html