Correlation ID
A correlation ID links related messages within an operation. It can cover several events and does not replace duplicate detection.
A correlation ID associates related messages or processing steps with a shared operation. This allows a workflow to be followed across several participating systems. The application determines which messages belong together; that relationship needs to be agreed for the exchange.
Follow an operation through its messages
In a fictional portal, a request starts processing in the ERP. A receipt acknowledgement and the result return later. These messages have different identifiers of their own but share the agreed correlation ID. When investigating a fault, you can use it to bring together the messages for that request.
Distinguish a relationship from an identity
Microsoft describes the CorrelationId application property for this purpose; the spelling CorrelationId belongs to this example. Shared correlation does not make two messages duplicates. It also does not prove that the workflow is complete. Specify who creates the identifier, which transfers preserve it and which responses you need to assess the operation.
Sources
Related terms
- Event IDAn event ID identifies an event within an agreed scope. A repeat delivery needs to be distinguished from a new event.
- Data versionA data version identifies a particular state of data. Whether identifiers encode a sequence must be defined; a schema version is a different concept.
- Transactional inboxA transactional inbox uses durable message records to protect local processing against duplicate deliveries.
- Message acknowledgementA message acknowledgement tells the broker that a delivery has been received or processed according to the agreed rule.
- Retry jitterRetry jitter varies waiting times randomly to spread retries and reduce simultaneous requests from many clients.
- Test tenantA logically bounded customer context of a multitenant application, configured for testing.
Articles on this topic








APIs & Integration with ASES
ERP, CRM and shop cleanly connected

