Redis Master Slave With Spring Boot

Overview: In this tutorial, I would like to demo Redis Master Slave (Read Replicas) using docker compose for local development purposes for a Spring Boot application. If you are new to Spring Boot Redis – check the below articles first. Spring Boot Redis Integration Redis PubSub With Spring Boot Redis Master Slave: Redis is an

Redis Master Slave With Spring BootRead More »

spring webflux streaming

Spring WebFlux Streaming

Overview: In this tutorial, I would like to demo Spring WebFlux Streaming Response (aka Server Sent Events) – a mechanism for pushing notifications/messages to the browsers from the back-end application in real time. Spring WebFlux Streaming: Traditionally browsers have to make a request to the server to fetch the latest information. It has worked just

Spring WebFlux StreamingRead More »

Retry Pattern With Spring Boot

Overview In this tutorial, I would like to demo Retry Pattern, one of the Microservice Design Patterns for designing highly resilient Microservices using a library called resilience4j along with Spring Boot. Need For Resiliency Microservices are distributed in nature. When you work with distributed systems, always remember this number one rule – anything could happen. We might be dealing

Retry Pattern With Spring BootRead More »

Timeout Pattern – Microservice Design Patterns

Overview: In this tutorial, I would like to demo Timeout Pattern, one of the Microservice Design Patterns for designing highly resilient Microservices. Need For Resiliency: Microservices are distributed in nature. When you work with distributed systems, always remember this number one rule – anything could happen. We might be dealing with network issues, service unavailability, application

Timeout Pattern – Microservice Design PatternsRead More »

RSocket With Spring Boot

Overview: In this tutorial, I would like to show you how to integrate RSocket with Spring Boot. If you are new to RSocket, take a look at this article to learn more. RSocket Interaction Models: RSocket is a message passing protocol for multiplexed, duplex communication which supports TCP, WebSockets and Aeron (UDP). It supports following

RSocket With Spring BootRead More »

MongoDB Change Streams With Reactive Spring Data

Overview: In this tutorial, I would like to show you how to set up MongoDB Replica Sets using docker-compose and access MongoDB Change Streams with Reactive Spring Data MongoDB Template. Replica Sets: A replica set is a group of MongoDB instances that maintain the same data set. Replica sets provide redundancy and high availability. MongoDB

MongoDB Change Streams With Reactive Spring DataRead More »

MongoDB Tailable Cursor With WebFlux

Overview: In this tutorial, I would like to show you how to access the MongoDB Tailable Cursor or Infinite Streams with Spring Data Reactive MongoDB. This approach can help us to develop a Spring Boot application to automatically notify our users on the new records getting inserted into a collection. MongoDB Tailable Cursor: By default, when

MongoDB Tailable Cursor With WebFluxRead More »

MongoDB Aggregation Pipeline With Reactive Spring Data

Overview: In this tutorial, I would like to show how to use the MongoDB Aggregation Pipeline to process multiple documents and present the data in the desired format with Reactive Spring Data MongoDB Repository and MongoDB Template. Project Setup: Lets first create a simple spring boot project with these dependencies. Sample Application: Let’s consider an application

MongoDB Aggregation Pipeline With Reactive Spring DataRead More »

spring data reactive mongodb

Spring Data Reactive MongoDB CRUD Example

Overview: In this article, I would like to show how to perform various CRUD Operations with Spring Data Reactive MongoDB Repository. Project Setup: Lets first create a simple spring boot project with the required dependencies like Spring Data Reactive MongoDB. Sample Application: We are going to develop a simple spring boot application for freelancers in

Spring Data Reactive MongoDB CRUD ExampleRead More »