reactor hot publisher

Reactor Flux File Reading

Overview: In this tutorial, I would like to quickly show you Reactor Flux File Reading example. How we could access a file, read the content stream and close the file etc with Project Reactor – to properly consume and cleaning up resources. We have been discussing reactive programming in this blog for a while. There […]

Redis Stream With Spring Boot

Overview: In this article, I would like to show Redis Stream With Spring Boot to demo how to implement real time stream processing. Redis: Redis was originally known as a REmote DIctionary Server for caching data. Along with Master/ReadReplication & Pub/Sub feature, Now Redis has added the support for Streams as well. Please take a look

Redis Stream With Spring BootRead More »

Distributed Tracing In Microservices – Jaeger With Spring Boot

Overview: In this tutorial, I would like to show you how we could enable Distributed Tracing In Microservices by using Jaeger with Spring Boot. Distributed Tracing In Microservices: There is a quote that ‘Troubles do not come alone and they would like to arrive in group‘. So are Microservices! They do not come alone! We

Distributed Tracing In Microservices – Jaeger With Spring BootRead More »

spring webflux error handling

Spring WebFlux Error Handling

Overview: In this article, I would like to show you Spring WebFlux Error Handling using @ControllerAdvice. Spring WebFlux Error Handling: Developing Microservices is fun and easy with Spring Boot. But anything could go wrong in when multiple Microservices talk to each other. In case of some unhandled exceptions like 500 – Internal Server Error, Spring

Spring WebFlux Error HandlingRead More »

Java Reactive Programming – Introduction Guide

Overview: Modern application technology has become very complex. Everything is connected to the internet. Even a Pressure cooker / Light Bulbs have apps & can be controlled via internet nowadays! Big monolithic applications are split into easily deployable, self-containing microservices. It has been a while since Microservices have become the trend! Microservices do have some

Java Reactive Programming – Introduction GuideRead More »

Materialized View PostgreSQL

Overview: In this tutorial, I would like to demo Materialized View PostgreSQL with Spring Boot  to increase the read performance of the application. Materialized View: Most of the web based applications are CRUD in nature with simple CREATE, READ, UPDATE and DELETE operations. It is also true that in the most of the applications, we

Materialized View PostgreSQLRead More »

Spring Boot S3 Integration – File Upload / Download

Overview: In this tutorial, I would like to demo Spring Boot S3 Integration & how we could upload/download files to/from a AWS S3 bucket easily! Spring Boot S3 Integration: Most of us are using AWS cloud for the Spring Boot applications. Often times we will also have requirements to access files to/from a S3 bucket.

Spring Boot S3 Integration – File Upload / DownloadRead More »

Kafka Stream With Spring Boot

Overview: In this tutorial, I would like to show you how to do real time data processing by using Kafka Stream With Spring Boot. Stream Processing: In the good old days, we used to collect data, store in a database and do nightly processing on the data. It is called batch processing! In this Microservices

Kafka Stream With Spring BootRead More »

MicroServices – DTO to Entity & Entity to DTO Mapping – Libraries Comparison

Overview: In this article, I would like to show you the performance of few libraries when we do the Entity to DTO conversion or vice versa. Goal: I have an Entity class as shown here. public class Car { private long id; private String make; private int numOfSeats; private Date releaseDate; private Engine engine; //getters

MicroServices – DTO to Entity & Entity to DTO Mapping – Libraries ComparisonRead More »

Kubernetes Liveness Probe vs Readiness Probe

Overview: In this article, I would like to show you the difference between the Kubernetes Liveness probe vs Readiness probe which we use in the Pod deployments yaml to monitor the health of the pods in the Kubernetes cluster. Need For Probes: Pod is a collection of 1 or more docker containers. It is an

Kubernetes Liveness Probe vs Readiness ProbeRead More »