RSocket translates to Reactive socket is a messaging protocol that works over TCP or Websockets. Communication modes this protocol provides are fire-and-forget, request-response and streaming. Since RSocket is fully reactive, it’s ideal for high-throughput applications.
In this post, we will explore three communications modes which are fire-and-forget
, request-response
and streaming
and test with RSocket Client CLI (RSC)
a postman type application but to test application over the socket.
start.spring.io
, select RSocket
as a dependency and a stable version of spring boot version at the point of time and clicking on Generate
should give a zip file with a skeleton project which good to get going.Initial project structure looks as
application.properties
spring.rsocket.server.port=7000
spring.main.lazy-initialization=true
#socket-programming #java #spring #reactive-programming #rxjava