Part 3: Distributed Tracing in Spring Boot with OpenTelemetry and Jaeger

In Part 1, we added metrics with Spring Boot Actuator, Prometheus, and Grafana. In Part 2, we centralized structured application logs using Filebeat, Logstash, Elasticsearch, and Kibana. In this final part, we will add distributed tracing. Distributed tracing helps answer an important question: When one user request travels through multiple services, where did time get spent and where did it…

Part 2: Centralized Logging in Spring Boot with ELK Stack — Filebeat, Logstash, Elasticsearch, and Kibana

In the first part of this workshop, we added metrics to our Employee Management API using Spring Boot Actuator, Micrometer, Prometheus, and Grafana. Metrics answer questions such as: How many requests does the application receive? What is the API error rate? Is JVM heap memory increasing? Is p95 response time above the expected limit? But metrics do not explain the…

Spring Boot Observability Workshop: Metrics, Logs, and Traces with Actuator, Prometheus, Grafana, ELK, and Jaeger

Production applications should not be treated as black boxes. When an API slows down, fails, or consumes too much memory, teams need answers quickly: Is the application healthy? Which API is slow? Is the JVM running out of memory? Which request failed? Which downstream service caused the delay? This is where observability helps. Observability is the ability to understand the…

This is the article where everything you’ve learned over the last few parts comes together.

Notice the progression of Java's evolution: Java 12 → Switch Expressions Java 14 → Records Java 16 → Pattern Matching for instanceof Java 17 → Sealed Classes Java 21 → Pattern Matching for switch (final) None of these features were designed in isolation. Together, they fundamentally change how we model business logic. This is one of the most important articles…

Part 35: Java 17 (LTS) – Sealed Classes – Designing Safer Domain Models for Enterprise Applications

Introduction Object-Oriented Programming is built around inheritance. For decades, Java allowed any class to extend another class unless it was declared final. This gave developers only two choices: Open for everyone or Closed for everyone There was no middle ground. However, enterprise applications often contain business models where only a fixed set of subtypes should ever exist. Examples include: Payment…

Part 18: UUID Best Practices – Java, Oracle, Hibernate, Microservices & Performance

Introduction Every enterprise application needs a way to uniquely identify its data. For many years, relational databases relied on auto-generated numeric identifiers: 1 2 3 4 5 These identifiers work well for monolithic applications with a single database. However, modern enterprise architectures look very different. Today's systems are built using: Microservices Event-driven architectures Kafka Cloud-native deployments Multi-region databases Offline synchronization…

Part 17: Spring Boot, Hibernate, Jackson & REST – End-to-End Date & Time Handling in Enterprise Applications

Introduction So far in this series, we've learned: Why Java introduced the new Date & Time API. How every java.time class works. Which Java type should be used for different business scenarios. How Oracle datatypes map to Java entities. Now it's time to put everything together. A timestamp in an enterprise application doesn't exist in isolation. It travels through multiple…

Part 16: Oracle ↔ Java ↔ JPA/Hibernate Mapping Guide – Choosing the Right Data Type for Enterprise Applications

Introduction Every enterprise application stores dates and timestamps. Whether you're building a banking platform, payment gateway, insurance application, e-commerce website, healthcare system, or event management platform, almost every table contains fields like: Created Date Updated Date Transaction Time Settlement Date Business Date Expiry Date Appointment Time Event Timestamp Although Java 8 introduced an excellent Date & Time API, many developers…

Why Refreshing L1 Cache Using a Scheduler is a Bad Idea

Building Scalable and Consistent Microservices Caching Architectures Caching is one of the most effective techniques for improving application performance. Modern microservices often implement a multi-level cache architecture: L1 Cache: In-memory cache inside the application (EhCache, Caffeine) L2 Cache: Distributed cache such as Redis or GemFire Database: The system of record While implementing L1 caching, many teams adopt a seemingly simple…

JVM, Memory Management & Exception Handling

MCQs Q1. Which JVM memory area stores objects? A. Stack B. Heap C. Method Area D. Program Counter Q2. What is Garbage Collection? A. Memory Allocation B. Memory Cleanup of Unused Objects C. Object Creation D. Stack Cleanup Q3. Which exception is unchecked? A. SQLException B. IOException C. ClassNotFoundException D. NullPointerException Q4. Which keyword is used to explicitly throw an…