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
System boundary · verification coordination
API process
accepts commands, status queries and signed callbacks; persists order, outbox and inboxWorker process
queries inbox and outbox, uses the provider adapter and evaluates the current attempt- Fachanwendung → APIPOST /verification-requests; later GET for status and decision
- API → Fachanwendung202 after acceptance; GET delivers the stored status
- API → SQLI-17 + Outbox or Callback → Inbox permanently save
- Worker → SQLRequest due inbox and outbox
- SQL → WorkerReturn due events and follow-up requests
- Worker → SQLD-17 + Status + Write Inbox Closure in a Transaction
- Worker → PrüfdienstCall the verification-service API over HTTPS or reconcile status
- 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 design at a glance
| Area | Decision | Why |
|---|---|---|
| System boundary | One operator, one provider, one purpose | Audit process and responsibility remain manageable. |
| Application | Test API and background worker with domain modules | Fast status queries and slow external work are separate. |
| Data | relational SQL data store with request, attempt, evidence and decision | Relationships and history remain traceable. |
| Integration | Hosted capture, adapter, inbox / outbox | Sensitive capture and retry-safe processing are clearly assigned. |
| Decision | Result plus purpose, reason, rule version and validity | The domain application can check current requirements. |
| Operations | Queue age, protected follow-up and recovery sample | Open 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
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?
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.