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 […]

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 »

gRPC Tutorial Java – The Complete Guide With Spring Boot

gRPC Tutorial Java: I am very happy to announce the launch of my new course on gRPC For Java Developers along with Spring Boot. Need For gRPC: Why do we need yet another framework? What is the problem with current Microservices design? gRPC is a framework from Google for inter-microservices communication. Google has been using

gRPC Tutorial Java – The Complete Guide With Spring BootRead 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 »

reactor hot publisher

Reactor limitRate Example

Overview: In this tutorial, Lets see how we could use Reactor limitRate to limit the rate of the incoming or outgoing messages through our reactive channel. If you are new to project reactor, take a look at all these articles here first for better understanding. Reactor limitRate: In reactive programming, we have subscribers (downstream) and

Reactor limitRate ExampleRead More »

gRPC vs REST Performance Comparison

Overview: In this tutorial, Lets develop both gRPC and REST based microservices and do the gRPC vs REST  Performance Comparison. If you are new to gRPC, please take a look at these articles first. gRPC – An Introduction Guide gRPC Unary API In Java – Easy Steps gRPC Spring Boot Integration TL;DR Check this youtube

gRPC 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 »

Spring WebFlux Security

Overview: In this tutorial, I would like to demo Spring WebFlux Security – security for reactive web applications. Sample Application: Lets consider a simple application which has 3 API endpoints. We need to have the security as shown below. Path Allowed Roles /home/admin ADMIN /home/user ADMIN, USER /home/any N/A Project Setup: Create a Spring Boot

Spring WebFlux SecurityRead 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 »