Member-only story

Spring Boot Microservices — Implementing Distributed Tracing

In this article, we will learn an important patten in Microservices Architecture — Distributed Tracing. We will create a sample implementation based on Spring Boot, Spring Cloud Sleuth and Zipkin. This is the fourth part of our series — Spring Boot Microservices — Learning through examples.

agentred
9 min readSep 10, 2020
Photo by Marten Bjork on Unsplash

What is Distributed Tracing?

Logging is an important aspect of software development. It not only helps in troubleshooting the issues but also help us in understanding the behavior of our softwares. With multiple microservices, logging becomes a multifold challenge.

Consider the example we discussed in our previous exercise — Developing Service Discovery. In this exercise, Our Shopping Cart Service needs to call Product Catalog Service to get the product details. The request is distributed across multiple services (2 in our case). If each of the services has multiple instances running, request will follow a path determined at run time.

The picture below shows just the 9 user requests getting distributed across 6 instances and it has already started looking complex…

--

--

agentred
agentred

Written by agentred

Curiosity Crafted, Knowledge Unveiled !

No responses yet