Building an RSocket based Springboot application

Building an RSocket based Springboot application

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.


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-forgetrequest-response and streaming and test with RSocket Client CLI (RSC) a postman type application but to test application over the socket.


  1. Install Java preferably version 15.

  2. Spring boot skeleton project

  3. Navigate to, 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.

    Image for post

Initial project structure looks as

Image for post

  1. Application configuration
  2. Next, setting up the port on which this application runs by modifying the file
  1. Client to test the server application:
  2. Here I am using RSC client created by Toshiaki Maki. Set-up instructions are on his GitHub page.

socket-programming java spring reactive-programming rxjava

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How to Install OpenJDK 11 on CentOS 8

What is OpenJDK? OpenJDk or Open Java Development Kit is a free, open-source framework of the Java Platform, Standard Edition (or Java SE).

Reactive Programming with Java Spring, R2DBC and MariaDB

We'll take a look at the (very) brief background of not only what Reactive Relational Database Connectivity (R2DBC) is but why it exists, and then dive into the code to see how the new MariaDB R2DBC connector can be used to create fully reactive, Java Spring applications!

TCP/IP Socket Programming in Java

TCP is a Network Protocol which stands for Transfer Control Protocol, that allows well founded communication between applications. TCP is consistently used over the Internet Protocol, and that is why referred as TCP/IP.

Spring Beans in Java

Spring IoC container is the core of the Spring Framework.In spring-based applications, objects live inside a spring containerThe container instan.

Wondering how to upgrade your skills in the pandemic? Here's a simple way you can do it.

Corona Virus Pandemic has brought the world to a standstill. Countries are on a major lockdown. Schools, colleges, theatres, gym, clubs, and all other public