As from spring 4, we have support of STOMP
(sub)protocol over WebSocket
. I do understand the benefits of WebSocket
as compared to HTTP and the use & benefits of using STOMP
over the WebSocket
but I would like to understand the following:
Are there any Performance benefits of directly using the stomp protocol to talk with the MB (like RabbitMQ or Kafka - probably in future)
Is there any benefit of using STOMP
as a sub-protocol over web-sockets other than to take care of the handshake required by the client to connect to the server/MB
Those are orthogonal concerns. Websocket is a transport; in fact, when using sock.js, you can use many transports as fallbacks and still use STOMP.
STOMP describes the message format exchanged between clients and servers.
It's like asking to compare TCP and HTTP.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With