• Stars
    star
    147
  • Rank 251,347 (Top 5 %)
  • Language
    Java
  • License
    GNU General Publi...
  • Created almost 5 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Getting Started With RSocket in Spring Boot

Getting Started With RSocket On Spring Boot (Series)

In the diverse world of microservices, working exclusively with the HTTP protocol can have some challenges. RSocket is a new messaging protocol that’s designed to solve some of these challenges. RSocket is a modern, flexible protocol that can do bi-directional communication delivered via TCP or WebSockets. RSocket brings modern features like multiplexing, back-pressure, resumption, routing, and several distinct messaging ‘modes’ including fire-and-forget, request-response, streaming, and channels.

But it doesn’t stop there. RSocket is also fully reactive, so it’s ideal for your high-throughput microservice applications. Early adopters include Netflix, Alibaba, and Facebook — all experts in delivering scalable Internet-based services.

In this series of exercises, you’ll learn how to get started with RSocket using Spring Boot. You’ll become familiar with how it works, and experience some of its power. By the end, you’ll have added RSocket to your skill set so that next time you’re figuring out your options, you’ll have an additional protocol to choose from. Each exercise takes around 20 minutes to complete, so you’ll be off to the races in no time.

Give RSocket a try, and I promise, you’ll be the envy of all your friends and co-workers!

All The Articles

Each article is around 6-8 minutes reading time and between 10-20 minutes coding time.

Getting Started With RSocket: Spring Boot Server

You’ll begin by creating some server-side code for ‘request-response’ messaging using Spring Boot and RSocket, and then check your server works by using a generic command-line client.

Getting Started With RSocket: Spring Boot Client

Continuing your exploration of RSocket, you’ll create a command-line client of your own using Spring Boot and Spring Shell. You’ll test this client against the RSocket server you created in the previous exercise.

Getting Started With RSocket: Spring Boot Fire And Forget

In this exercise, you’ll upgrade your client and server by adding ‘fire-and-forget’ messaging to both and then testing the results.

Getting Started With RSocket: Spring Boot Request-Stream

You’ll now add streaming to your client and server applications and observe the results for yourself by starting a stream.

Getting Started With RSocket: Spring Boot Channels

Channels add bi-directional streams to your applications, so clients and servers can stay in constant touch. This tutorial adds channels to your code.

Getting Started With RSocket: Spring Boot Servers Calling Clients

With RSocket, the convention of client and server can be relaxed. In this exercise, you’ll discover how clients and servers can become ‘requesters’ and ‘responders.’ You’ll add code that allows your server to send requests which your clients can respond to.

Getting Started With RSocket: Testing Spring Boot Responders

Running realistic tests on responders isn’t difficult with Spring Boot. In this exercise, you’ll add an integration test for your server-side code and configure Maven to run your integration tests in isolation.

Getting Started With RSocket: Spring Security

Spring Security simplifies the process of securing your RSocket applications. In this exercise, you’ll add the required dependencies, configure server-side security, pass credentials, and add authentication and authorization features to your RSocket applications.

For latest updates, news, and interestings, follow me on Twitter

More Repositories

1

cqrs-microservice-sampler

A Java Microservice & CQRS Demo using Spring Boot, Axon & Docker
Java
652
star
2

spring-cloud-gateway-demo

Code and articles to help folks get started with Spring Cloud Gateway.
Java
181
star
3

android-alltest-gradle-sample

A template Gradle / Android project which integrates and configures Robolectric, Robotium, JUnit4 and standard Android Instrumentation together in one project.
Java
128
star
4

spring-cloud-stream-demo

Simple Event Driven Microservices with Spring Cloud Stream
Java
98
star
5

pcf-axon-cqrs-demo

Demonstrates CQRS and Event Sourcing microservices in Java using Pivotal CloudFoundry, SpringBoot and the Axon Framework.
Java
52
star
6

axon-initializr

A customised Spring Initailizr to help folks create Axon based CQRS & Event Sourced applications from scratch.
Java
52
star
7

backstage-plugin-backchat

A quick and dirty frontend plugin that integrates a GenAI feature into Backstage
TypeScript
47
star
8

springone-2020-rsocket-talk

Getting started with RSocket
Java
31
star
9

pcf-spring-cloud-services-demo

Demonstrates how to write Spring Boot applications that use the PCF Spring Cloud Services (Hystrix, Eureka and Config)
Java
25
star
10

android-couchbase-dagger-robolectric

This Android / Gradle project integrates Couchbase, Robolectric and Dagger so that unit testing can occur without the need for a connected device or emulator.
Java
17
star
11

spring-cloud-dataflow-demo

Demonstration of streaming applications using Spring Cloud Data Flow with microservices written in Spring Cloud Stream.
Java
12
star
12

spring-cloud-contracts

Demonstrates the use of Spring Cloud Contracts for Consumer Driven API's
Java
12
star
13

cf-cqrs-microservice-sampler

CQRS Microservice Demo that runs and scales on CloudFoundry.
Java
9
star
14

backstagecon-2023

BackstageCon 2023
6
star
15

axon-cqrs-sample

Java
6
star
16

test-driven-jee-modernisation

An example of how ArchUnit can be used to help you eradicate dependencies to the Java Enterprise framework.
Java
3
star
17

python-cloudfoundry-demo

Python
2
star
18

pcf-route-service

Demonstrates a simple PCF Route Service that injects a new HTTP header "x-auth-user" containing a signed JWT token.
Java
2
star
19

tanzu-application-platform-scripts

Shell
2
star
20

spring-cloud-connectors-demo

Demonstrates connecting to services hosted in Cloud Foundry from Spring Boot using spring-cloud-connectors.
Java
2
star
21

tap-demo-config-files

tap demo configuration files
2
star
22

test-java-002

Java
1
star
23

microservice-sampler-config

configuration used by the config server for the microservice-sampler microservices.
1
star
24

python-pipenv

Simple Python App using PipEnv package management
HTML
1
star
25

spring-oauth-sso-demo

Demonstrates the use of OAUTH2 with SpringBoot.
Shell
1
star
26

backstage-catalogs

backstage-catalogs
1
star
27

axon-jpa-example

A simple demo of Queries backed by JPA based "projections" using Axon 4.0
Java
1
star
28

springboot-djl-demo

Demonstrates ML based sentiment analysis via REST API.
Java
1
star
29

akka-cqrs-sample

Java
1
star
30

systems-techdocs

The repo contains some sample Backstage TechDocs documentation for the Where For Dinner sample application.
Shell
1
star
31

TripComputer-Android-Project

TripComputer is an Android App that displays time, distance, cost and many more facts about your journey.
Java
1
star