WebSocket on Spring MongoDB Reactive Programming

Introduction Here we will see an example on WebSocket on Spring MongoDB Reactive Programming. In past we have see few examples on WebSocket but this example will use Spring WebFlux, i.e., WebSocket on Spring Reactive API. WebFlux includes reactive WebSocket client and server support. Both client and server are supported on the Java WebSocket API (JSR-356), Jetty, Undertow, Reactor Netty, and RxNetty. On the server side, declare a WebSocketHandlerAdapter and then simply add mappings to WebSocketHandler-based endpoints.

Continue

Spring MongoDB Functional Reactive Microservices Example

Introduction In this three pages post we will see how to create Spring MongoDB Functional Reactive Microservices Example. We are going to use here Spring 5’s Webflux API. We will also see here how to use Flux and Mono with ServerResponse, ServerRequest in Handler function. We will know how to use RequestPredicates in Router function in subsequent sections. We will use Spring Cloud, Eureka server and Ribbon for implementing our example. If you want to know about reactive or functional reactive programming then you need to go through Spring Boot…

Continue

Spring Boot MongoDB Functional Reactive CRUD Example

Introduction We will see here Spring Boot MongoDB Functional Reactive CRUD Example. We have seen our previous example on Spring Boot Functional Reactive Programming but we did not use any persistent storage like MongoDB but here we are going to use MongoDB for performing CRUD operations. We are going to use Spring 5’s Webflux API with reactive stream to implement our Spring Reactive program. This is a Spring Reactive programming example implemented in a functional way using Java’s lambda expression. If you want to know detail on Reactive Programming or…

Continue

Spring Boot + Angular Functional Reactive Programming Example

Introduction This tutorial is about Spring Boot + Angular Functional Reactive Programming Example that will show you how you will create REST APIs using Spring Boot Functional Reactive Programming and consume these server side REST APIs using Angular Reactive Programming. We have seen in our example on Spring Boot Functional Reactive Programming, which you must go through first in order to understand the functional reactive programming. We will consume the server side REST APIs using popular client side technology Angular that basically uses Observer and Iterator pattern to make it…

Continue

Spring Boot Functional Reactive Programming Example

Introduction This tutorial will show you an example on Spring Boot Functional Reactive Programming (FRP). We will use both Gradle and Maven build tools to build the application. Related Posts: Spring Boot MongoDB Functional Reactive Programming WebSocket on Spring Boot MongoDB Reactive Programming What are Reactive and Functional Reactive Programming? Reactive programming is a declarative programming paradigm concerned with data streams and the propagation of change. In other words, Reactive Programming is a style of micro-architecture involving intelligent routing and consumption of events, all combining to change behaviour. Simply to…

Continue