CPI Reliability Part 2: Idempotency, Duplicate Checks and the Idempotent Process Call
Preview · a free account unlocks the full lesson
Prevent duplicates when senders resend or retries occur: idempotency keys, the Idempotent Process Call step, duplicate checks at receivers, and how exactly-once is really achieved with at-least-once delivery.
Visual overview
Explanation
Part 1 of this series covered retries. Part 2 handles the duplicates that retries can cause.
Why duplicates happen: senders resend after timeouts even though the first attempt actually reached the receiver, JMS retries a message that was already delivered, or a user re-triggers a document manually. With at-least-once delivery, which is the most reliable mode available, the same business message can legitimately arrive more than once, so duplicates have to be expected and handled rather than assumed away.
The Idempotent Process Call step wraps a local process call and records the IDs of messages that were already processed successfully, in a repository the step manages. When a message with the same ID arrives again, the subprocess inside is skipped and the flow can respond as if it had processed it again, without repeating the side effect. You choose the expression that becomes the ID.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
More lessons in this topic
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.