Concept Flow - Idempotency tokens
Client sends request with token
Check if token exists in DB?
Yes→Return previous result
No
Process request
Store token and result
Return new result
The system checks if the idempotency token was used before. If yes, it returns the old result. If no, it processes and stores the result with the token.