How do you track a single user request as it travels through ten different microservices, and what is a Correlation ID?

Last updated 3 July 2026

You track a request across services with distributed tracing: a Correlation ID (a unique identifier generated at the entry point) is attached to the request and propagated through every downstream call, so all logs and spans for that one user action can be stitched together. It's the thread that lets you follow a single journey through ten services.

  • Correlation ID basics:

    • A unique ID (often a UUID) created at the edge (API gateway or first service) if the client didn't send one.

    • Passed on every hop, typically in a header like X-Correlation-ID or via W3C traceparent.

  • Propagation: Forward it on HTTP calls and message headers; include it in every log line so logs can be filtered by that one ID.

  • Tracing vs correlation:

    • A trace ID identifies the whole request; span IDs identify each service's unit of work, forming a parent/child tree of timing.

    • Correlation ID is the simpler logging-oriented case; full tracing (OpenTelemetry, Jaeger, Zipkin) adds latency and dependency visualization.

  • Tooling: Use OpenTelemetry to auto-inject and propagate context, and a centralized log/trace store (ELK, Jaeger) to query by ID.

  • Why it matters: Without it, debugging a failure means guessing which of ten services' interleaved logs belong to your request.

  • https://www.geeksforgeeks.org/system-design/top-microservices-interview-questions/
  • https://www.geeksforgeeks.org/system-design/microservices-resilience-patterns/
  • https://medium.com/@RichaShukla2111/saga-pattern-a-practical-guide-to-distributed-transactions-in-microservices-f4f0f27755f0
  • https://dev.to/athulmr/making-rest-microservices-resilient-bulkhead-retry-circuit-breaker-in-practice-1mpl
  • https://blog.bytebytego.com/p/6-more-microservices-interview-questions
  • https://www.ashokit.in/blog/top-microservices-interview-questions-and-answers
  • https://underdog.io/blog/software-engineer-interview-questions
  • https://medium.com/@sumitkumarsharma/migrating-to-microservices-with-the-strangler-pattern-221d840bbf7f
  • https://staragile.com/blog/microservices-interview-questions
  • https://blog.stackademic.com/microservices-tricky-interview-questions-must-know-8265a6ef81ee
  • https://www.turing.com/interview-questions/microservices
  • https://blog.stackademic.com/microservices-must-know-interview-questions-442506cb4e69
  • https://www.javacodegeeks.com/2024/08/mastering-microservices-tricky-interview-questions-and-answers.html
  • https://blog.devgenius.io/inbox-outbox-pattern-building-reliable-systems-in-distributed-architectures-912a3246c4c4
  • https://sumitmm.medium.com/5-essential-microservices-interview-questions-for-senior-developers-with-detailed-answers-1d21b8106373
  • https://www.vinsys.com/blog/microservices-interview-questions
  • https://medium.com/ultimate-systems-design-and-building/choreography-vs-orchestration-in-microservices-which-saga-strategy-should-you-choose-be0bb700a1d2
  • https://metoro.io/blog/microservice-interview-questions
  • https://dev.to/vivek1030/microservice-questions-46kb
  • https://preparingforcodinginterview.wordpress.com/2020/06/30/orchestration-vs-choreography/
All Microservices interview questions