Idempotency
Repeating an operation has the same effect within a defined boundary. A stable key can prevent duplicate records without covering unrelated effects.
Interactive diagrams for independent engineering projects and educational examples.
Systems Design
A personal archive with separate import, transcription and vector indexing stages. Retries can replay an upsert to the same point ID.
Independent personal project. The diagram describes software components and contains no example messages or account records.
Selected Component
Provides incremental message history and voice attachments subject to upstream rate limits.
Engineering Concepts
Failure handling
Design Trade-off
Rate-limited upstream API requires persistent cursor checkpoints to avoid costly full re-syncs.
Inspect Components (Click or Enter)
EntityLocker explores keyed locking among Java threads in one process. The code orders nested acquisition and attempts to retire idle registry entries.
Public source and JUnit tests for a Java locking experiment maintained by Denis Stepulenok. Source repository
Selected Component
Threads using the same EntityLocker instance supply the key and code they wish to run.
Engineering Concepts
Distributed coordination
Design Trade-off
The lock registry is local to one instance. Other instances and processes are outside its scope.
Inspect Components (Click or Enter)
An educational reference for committing an event with application data and relaying it to a broker. Repeated publication is possible, so consumers need a duplicate-handling strategy.
Independent reference design for teaching a general engineering pattern.
Selected Component
Use one local database transaction to update business data and persist the intended event.
Engineering Concepts
Security · Failure handling
Design Trade-off
Atomicity covers this database transaction. The later broker publication is a separate operation.
Inspect Components (Click or Enter)
An educational reference for accepting jobs, constraining worker concurrency and publishing completed outputs.
Independent reference design for teaching a general engineering pattern.
Selected Component
Authenticates requests, enqueues work asynchronously, and returns a job correlation ID immediately.
Engineering Concepts
Security · Observability
Design Trade-off
Keeps request threads fast and predictable instead of blocking on long-running background work.
Inspect Components (Click or Enter)
A reference architecture / design case study for production LLMs in regulated fintech systems: deterministic PII masking before external calls, schema-validated outputs, and auditable token-cost and compliance telemetry.
Independent reference architecture / design case study illustrating production LLM gateway, PII guardrail, and audit pipeline patterns; not derived from any employer's proprietary system.
Selected Component
Intercepts inbound service requests and deterministically redacts IBANs, emails, and payment card numbers before any payload leaves the internal network boundary.
Engineering Concepts
Security · Failure handling
Design Trade-off
Deterministic validators add predictable low latency without relying on a second probabilistic model for compliance-critical masking.
Inspect Components (Click or Enter)
Repeating an operation has the same effect within a defined boundary. A stable key can prevent duplicate records without covering unrelated effects.
Separate stores may disagree while updates are in progress. Retries and reconciliation can help them converge when the changes are applied.
At-least-once delivery can repeat a message. Exactly-once processing requires a clearly defined transaction and effect boundary.
Recover from transient faults through bounded retries, and expose persistent failures for inspection or replay.
Threads in one JVM can share a lock. Multiple processes need a coordination mechanism with its own failure model.
Cached data can become stale. Expiry, invalidation and refresh policies determine when it becomes consistent with its source.
Logs, metrics and traces help explain behaviour and investigate failures.
Use authentication, authorisation, appropriate data handling and a documented threat model to protect access.