Data flow observability
Observability
Observability is essential in any system. In Hii Retail, which uses a microservice architecture and asynchronous communication, there are no global transactions that can roll back an entire batch if a single part fails.
Correlation Ids
A Correlation Id uniquely identifies every request to Hii Retail. While not mandatory, it is highly recommended if you need insight into data flow.
The Correlation Id is a string (e.g., UUID or GUID) and should be unique per request. It is included in the request header.
Alternative Scenario
You may use the same Correlation Id for multiple entities (e.g., in a batch) if you want to correlate them. This allows you to track all related entities through the system.
If you do not provide a Correlation Id, Hii Retail will generate one and use it throughout the downstream data flow.