ID - gusenov/kb GitHub Wiki

Wikipedia

Correlation ID (Transit ID)

  • Rapid7 Blog / The Value of Correlation IDs
    • today one request to a particular domain can involve a myriad of subsequent asynchronous requests from the starting domain to others.
    • For example, you send a request to Expedia, but behind the scenes Expedia is forwarding your request as a message to a message broker. Then that message is consumed by a hotel, airline and car rental agency that responds asynchronously too. So the question comes up, with your one request being passed about to a multitude of processing consumers, how do we keep track of the transaction? The answer is: use a Correlation ID.
  • Okta / Correlation ID: Definition, Functionality and Uses
    • Correlation IDs bundle one transaction as it moves through multiple processors.
    • You run an auction website that provides items from hundreds of sellers. Your visitor buys from three sellers in one order. Your website splits those orders to the disparate sellers. A week later, your client asks where the order is. A correlation ID could help you track all of the pieces that make up this one order.
    • if your workflows include sub-processors, assigning these unique numbers could help you provide optimal customer service.
  • Correlation ID by Engin Yöyen
    • A Correlation ID refers to an ID that uniquely links discrete events together across different services, which has a single origin.
    • For instance, a single user action, such as ordering an item, could generate multiple service calls.
    • A common approach to makes use of correlation IDs is to log the transaction in each service, collect logs, and transfer to a centralised logging solution.
  • Correlation IDs for microservices architectures by Peter Hilton
    • Any system that processes more than one ‘order’ at a time will end up with system logs that interleave log messages for multiple orders.
    • A correlation ID uniquely identifies each ‘customer order’, or the equivalent in your system.
    • Once you have a correlation ID, you include it in every log message and network request, such as HTTP requests to microservices.