ProLesson 12.1Intermediate3 min readUpdated 31 October 2026
The Three Pillars of Observability
Differentiate monitoring from observability, master the Three Pillars (Metrics, Logs, Traces), and build structured JSON logging with MDC in Spring Boot 3.
In a monolithic application, troubleshooting a bug was simple: SSH into the single virtual machine, run tail -f /var/log/application.log, and observe exception stack traces scrolling on screen.
In a microservices architecture, that single user action (such as clicking "Checkout") triggers a cascade of asynchronous network calls spanning 20 independent container instances.
If the checkout fails:
- Which service failed?
- Which container had the error?
- How do you correlate the log message in the
Order Servicewith the database lock timeout in theInventory Service?
01Monitoring vs Observability
- Monitoring: Tells you THAT a system is broken. It tracks predefined thresholds and "known-knowns" (e.g., "Is CPU > 85%?", "Is HTTP 500 rate > 1%?").
- Observability: A measure of how well you can infer the internal states of a system based solely on its external outputs. It empowers engineers to ask novel, unexpected questions about "unknown-unknowns" (e.g., "Why did latency spike only for premium enterprise users in London between 14:02 and 14:05?").
Loading the rest of the lesson…