MicroServices – How To Share DTO (Data Transfer Objects)

Overview: Over the years, MicroServices have become very popular. They are smaller, modular, easy to deploy and scale etc. However MicroService architectures do have some challenges. MicroServices have specific responsibilities. In order to complete an application workflow / a task, multiple MicroServices might have to work together. For example, an user would like to buy […]

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 »

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 »

Kafka – Scaling Consumers Out In A Consumer Group

Overview: This is a 3rd part in the Kafka series. If you have not read the previous articles, I would encourage you to read those in the below order. Kafka – Local Infrastructure Setup Using Docker Compose Kafka – Creating Simple Producer & Consumer Applications Using Spring Boot We had already seen producing messages into

Kafka – Scaling Consumers Out In A Consumer GroupRead More »