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 »

NATS Messaging vs REST Performance Comparison

Overview: In this tutorial, I would like to show you the performance of the NATS messaging vs REST based microservices. NATS is a high performance cloud native messaging server which we had already discussed here. NATS can help with service discovery, load balancing, inter-microservices communication etc in the modern distributed systems architecture. Sample Application: Our main

NATS Messaging vs REST Performance ComparisonRead More »

NATS – Server Clustering

Overview: In the previous article on NATS, we had discussed the basics of NATS set up and its features. pub/sub request/reply queue groups service discovery (channel) load balancing NATS is a very lightweight, high performance messaging server – It makes it as a good choice for modern microservices architecture to solve the service discovery and

NATS – Server ClusteringRead More »

RSocket + WebSocket + Spring Boot = Real Time Application

Overview: In this tutorial, I would like to show you how to create a real time application using RSocket WebSocket & Spring Boot.  If you are new to RSocket, take a loot these articles first. RSocket With Java – Getting Started RSocket With Spring Boot RSocket – Uploading Files With Reactive Programming Sample Application: Our

RSocket + WebSocket + Spring Boot = Real Time ApplicationRead More »

NATS Messaging In Java

Overview: In this tutorial, I would like to introduce NATS Messaging to you & talk about its advantages in Microservices Architecture and some code samples in Java. NATS Messaging Server: We had discussed a lot about inter microservices communication using Kafka, gRPC, RSocket, even Redis in this blog. They are all great and they have

NATS Messaging In JavaRead More »

reactor hot publisher

Reactor Parallel Flux Example

Overview: In this short tutorial, I would like to demo Reactor Parallel Flux to process all the items in a reactive pipeline in parallel using Schedulers/Thread pools. If you are new to this, take a look at the entire set of articles here in the given order. Reactor Sequential Flux: Reactive programming is a style

Reactor Parallel Flux ExampleRead More »

RSocket File Upload Example

Overview: In this tutorial, I would like to show you RSocket File Upload – how we could upload large files in a complete reactive programming style with back-pressure support. RSocket is a message passing protocol for multiplexed, duplex communication which supports TCP, WebSockets and Aeron (UDP).  If you are new to RSocket, take a look at these articles to

RSocket File Upload ExampleRead More »

RSocket With Java – Getting Started

Overview: In this tutorial, I would like to introduce you to RSocket with Java, its interaction models and how it will be helpful for Microservices communication or client – server application development. RSocket: RSocket is a binary & message passing protocol over a single connection between client and server. It supports TCP, WebSockets and Aeron

RSocket With Java – Getting StartedRead More »

reactor hot publisher

Reactor Buffer vs Window

Overview: In this tutorial, I would like to demo Reactor Buffer vs Window options for collecting the items in a reactive pipeline & doing operations in batches. If you are new to reactive programming or project reactor, take a look at this entire series to get a good idea on that. Reactor Buffer vs Window:

Reactor Buffer vs WindowRead More »