기타
Websocket vs stomp
개발자종혁
2021. 7. 3. 21:53
728x90
Websocket
- 클라이언트와 서버간 동기적 양방향이 통신을 할 수 있는 특정 기술. TCP와 비슷하나, HTTP connection을 업그레이드 한 프로토콜을 이용하며, 스트림을 이용하는 대신, 프레임을 이용해 통신한다.
stomp
- 클라이언트와 서버가 통신하는 프로토콜을 이용한다.
STOMP
It defines a protocol for clients and servers to communicate with messaging semantics. It does not define any implementation details, but rather addresses an easy-to-implement wire protocol for messaging integrations. It provides higher semantics on top of the WebSockets protocol and defines a handful of frame types that are mapped onto WebSockets frames. Some of these types are...
- connect
- subscribe
- unsubscribe
- send (messages sent to the server)
- message (for messages send from the server) BEGIN, COMMIT, ROLLBACK (transaction management)
728x90