All Lessons

How does an idempotency check differ fundamentally from an HTTP response cache in the Helpdesk Copilot?

1 / 1
intermediate 45 min

Day 15: Persist Work Safely and Make Retries Idempotent

Persist Work Safely and Make Retries Idempotent

Loading lesson content...

An agent double-clicks 'Generate Reply', sending two identical POST requests with the same Idempotency-Key within 30 milliseconds. Review the database schema below. What mechanism guarantees that only one generation cycle runs?

1 / 1

When persisting a draft record, the service must save the generated text, prompt metadata, and retrieved passage citations. What occurs if text and citations are committed in separate, non-transactional database writes and a network failure occurs between them?

1 / 1