Creating a RSocket Server
Learn how to create a server-side for an RSocket application.
We'll cover the following...
Adding RSocket dependency
Let’s start by adding the following dependency to our pom.xml
file:
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-rsocket</artifactId></dependency>
Adding Spring Boot’s RSocket starter to the build file
This single addition to our build file introduces:
- RSocket Core and Transport Netty
- Reactor Netty
- Spring Messaging (from the Spring Framework)
- Jackson
The description of the above points is as follows:
-
RSocket: The protocol itself is implemented in Java.
-
Reactor Netty: Netty as a reactive message manager is valuable. Being wrapped in Reactor goodness makes Netty a powerful server.
- Spring + Jackson: How messages are picked up,