System Design Atlas

Verify identity evidence and eligibility

10 / 10Worked example

Final design

Does the overall draft carry the most important promise of I-17?

The general desire to "check identity" has become a delimited process: evidence is assigned to a task, results are reliably adopted and decisions are provided for purpose. The domain application continues to check its own context when accessing.

Starting point Boundary, requirements, load, contracts, data, architecture, critical sequence, trade-offs and operation are elaborated.

Assumptions for the example case

Example design: an operator, a verification provider and a specified purpose of use. Identity and other evidence shall be assessed separately. Login, sessions, and rights across multiple applications are not part of this case. Figures and target values are design assumptions; no real people are checked.

Bringing together decisions and evidence for I-17

Runtime view · API, SQL and worker within verification coordination

Domain applicationStarting I-17 and reads his stand
Verification servicechecks externally and reports V-17

System boundary · verification coordination

API process

accepts commands, status queries and signed callbacks; persists order, outbox and inbox
Decision202 after request + outbox commit; callback 2xx after inbox commit.Test caseCancellation before commit does not generate a confirmation of acceptance.Return to an earlier stepStep 4 · Acceptance Contract
Relational SQL datastoreRequest · attempt · evidence · decisionOutbox: follow-up orders · Inbox: accepted callbacks
DecisionDecision, status and inbox closing form a transaction.Test caseCrash produces either all changes or none.Return to an earlier stepStep 5 · Data and transitions

Worker process

queries inbox and outbox, uses the provider adapter and evaluates the current attempt
DecisionProvider calls and decision processing use bounded concurrency and support retries.Test caseDuplicate, crash and V-16 They do not produce a false effect.Return to an earlier stepStep 7 · sequence; Step 9 · recovery
  1. Fachanwendung → APIPOST /verification-requests; later GET for status and decision
  2. API → Fachanwendung202 after acceptance; GET delivers the stored status
  3. API → SQLI-17 + Outbox or Callback → Inbox permanently save
  4. Worker → SQLRequest due inbox and outbox
  5. SQL → WorkerReturn due events and follow-up requests
  6. Worker → SQLD-17 + Status + Write Inbox Closure in a Transaction
  7. Worker → PrüfdienstCall the verification-service API over HTTPS or reconcile status
  8. Prüfdienst → APIPOST /provider-events with signature; Inbox-Commit before 2xx
  • Separate runtime processes
  • Authoritative SQL data store with inbox and outbox
  • Domain application and verification service outside the boundary

The API confirms after the persisted inbox acceptance. The worker later queries Inbox and Outbox and jointly commits decision, status and inbox completion.

The architecture overview connects the system boundary, runtime components, data storage and outstanding verification work.

The design at a glance

AreaDecisionWhy
System boundaryOne operator, one provider, one purposeAudit process and responsibility remain manageable.
ApplicationTest API and background worker with domain modulesFast status queries and slow external work are separate.
Datarelational SQL data store with request, attempt, evidence and decisionRelationships and history remain traceable.
IntegrationHosted capture, adapter, inbox / outboxSensitive capture and retry-safe processing are clearly assigned.
DecisionResult plus purpose, reason, rule version and validityThe domain application can check current requirements.
OperationsQueue age, protected follow-up and recovery sampleOpen cases get a responsibility and a next step.

System boundary

Decision
One operator, one provider, one purpose
Why
Audit process and responsibility remain manageable.

Application

Decision
Test API and background worker with domain modules
Why
Fast status queries and slow external work are separate.

Data

Decision
relational SQL data store with request, attempt, evidence and decision
Why
Relationships and history remain traceable.

Integration

Decision
Hosted capture, adapter, inbox / outbox
Why
Sensitive capture and retry-safe processing are clearly assigned.

Decision

Decision
Result plus purpose, reason, rule version and validity
Why
The domain application can check current requirements.

Operations

Decision
Queue age, protected follow-up and recovery sample
Why
Open cases get a responsibility and a next step.

First end-to-end verification

A complete order
Using synthetic proofs in the test system, start an order, take over a provider result and query a purpose-related decision. The test makes no statement about real people.
Retries and expiry
Deliver the same event several times, stop the worker after acceptance and deliver an old attempt late. The business effect must remain the same. An expired decision no longer meets the condition.
Open production decisions
Test scope and types of proof, provider limits, processing periods, storage and responsibilities are concretely agreed before a real introduction. The example figures do not replace this clarification.

When the next expansion makes sense

Next step

Take the full test path first

A demonstrable process provides more decision support than other infrastructure.

Trade-off
Several providers and independent services remain open for the time being.
Reassess
Reassess after measured drop-offs, backlogs or new domain requirements for evidence.

Try it yourself

Follow a request from submission to decision. Assign each component a decision, a test case and a design step to revisit.

A hint for your attempt

The final design is a verification plan. Implementation review remains outstanding.

Compare with a possible solution
Verification request and API
Decision: the API manages I-17 for P-17 and Z-3 and accepts the same requestKey idempotently. Test a duplicate requestKey and another person’s ID; expect exactly one request and 0 data belonging to another person. Return to step 2 or 4 for incorrect assignment.
Inbox, Worker and Adapter
Decision: E-17 persists in the inbox before 2xx; the worker uses the adapter and processes later. Test case: Duplicate, invalid signature and delayed V-16; expected to have exactly one effect for E-17 and 0 changes by V-16. Return to: Step 4 or 7.
SQL and states
Decision: SQL stores requests, attempts, evidence and decisions with separate lifecycles. Test: force a failure between the D-17 write and the status commit; expect both changes or neither. Return to step 5 if a partial state is visible.
Domain decision and access
Decision: D-17 stores `erfüllt` or `nicht erfüllt` for Z-3; the domain application checks validity and its current context. Test case: expired decision, wrong purpose and valid status; only valid accesses are expected. Return to: Step 2 or 5 in case of incorrect release.
Case review and operations
Decision: `needs_review` remains assigned to a responsible person and technical backlogs remain separate from the domain case. Test case: 50 clarifications per day, missing callback and restore; visible deadlines, no silent completions and no double D-17 are expected. Return to: Step 9 in case of lack of responsibility or recovery deviation.

Apply to your project

Which smallest vertical sequence can you implement in your project and check with error cases?

The template collects all ten thinking tasks for your own design.

Start your own design

Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.

Download design template (.md)
Compare the ten tasks with the example case
  1. Purpose and boundary

    What prerequisite does your subsystem provide, and what decision remains with the calling system?

    In the example: Verification coordination provides a verifiable basis. The domain application retains responsibility for the specific access decision.

  2. Requirements

    What rule does your system always need to protect, and what operational goal do you want to measure?

    In the example: Only a valid decision for the correct person and purpose satisfies the verified prerequisites.

  3. Scale estimates

    What amount or cluster limits your case: requests, external quota, data volume or human casework?

    In the example: The load assumption supports a compact application. Provider limits and the age of open cases take priority.

  4. Interfaces

    Which key makes a repeated order unique in your system?

    In the example: Every write command has a stable identity. Transport acknowledgement, provider results and domain decisions remain distinguishable.

  5. Data and states

    What relationships and state transitions does your system need to protect in a transaction?

    In the example: A relational SQL datastore manages relationships and the current decision. Purpose, version and validity replace a global approval flag.

  6. Overall architecture

    Which building blocks need their own runtime in your design, which only have a clear module boundary?

    In the example: A shared SQL datastore keeps the request and decision consistent. The API acknowledges an authenticated, persisted E-17 only after inbox acceptance; the worker processes it later and writes D-17 atomically with the request status.

  7. Critical flow

    What delayed or repeated message could create an incorrect state in your system?

    In the example: A provider event affects only its assigned attempt. Retries and ordering cannot create an unrelated or outdated approval.

  8. Bottlenecks and trade-offs

    Which measurement would trigger a concrete scaling decision in your project?

    In the example: An extension must solve an observed bottleneck and preserve decision traceability.

  9. Operations and security

    Who handles each incident in your system, and what evidence confirms resolution?

    In the example: Responsible teams can distinguish technical backlogs from substantive case review. Every manual and automatic decision remains explainable.

  10. Final design

    Which smallest vertical sequence can you implement in your project and check with error cases?

    In the example: Identity verification is a process involving evidence and decisions. Its reliability is demonstrated by retries, case resolution and expired prerequisites.