Search⌘ K
AI Features

RSocket Paradigms

Explore the core RSocket paradigms used in Spring Boot reactive programming. Understand the mechanics of request/response, request/stream, fire-and-forget, and channel styles to build efficient, message-driven applications leveraging reactive streams and backpressure management.

RSocket starts with the premise of a socket. Sockets are tried-and-true mechanisms to open connections, transmit data, receive data, and continue. RSocket simply puts a different API on top of this channel.

But first, it’s important to understand the paradigms of RSocket:

  • Request/response (stream of 1.)
  • Request/stream (finite stream of many.)
  • Fire-and-forget (no response.)
  • Channel (bidirectional.)

Request/Response

The request/response approach probably solves 80% of our problems. Many things we do use this. Requesting a piece of data from a ...