Skip to content

PATTERN Cited by 1 source

Access check before idempotent provisioning

Check whether a returning identity already has the required access before invoking an idempotent provisioning workflow. If access exists, continue on the fast path; if it does not, provision and then verify access again. Idempotency protects correctness, but it does not make an unnecessary synchronous provisioning call free on every session.

Flow

fetch identity → check access
  ├─ access exists → load application
  └─ access missing → provision → re-check access → load application

The final verification is important because provisioning and permission propagation can be eventually consistent. Combine this pattern with an explicit convergence state, rather than assuming the provisioning API's success response means every downstream read is immediately ready.

Seen in

Last updated · 619 distilled / 1,953 read