Schematics
Reference schematics
Reference architectures we use as starting points. Each one is adapted to the client's constraints — these are patterns, not products.
A telemetry pipeline that stays affordable as you grow
Applications emit traces, metrics and logs through one standard SDK; a collector tier in the middle decides what is kept, what is summarised and what never leaves the cluster.
Flow
- Services, workers and edge proxies emit OTLP through the OpenTelemetry SDK with shared resource attributes.
- Node-level agents buffer locally so a collector restart does not drop data.
- The collector tier batches, filters noisy spans, redacts personal data and enriches with deployment metadata.
- Tail-based sampling keeps every slow or failed trace and a fraction of healthy ones.
- Signals are exported to separate back ends with retention set per signal type.
Design decisions
- One collector configuration in version control, rolled out like application code.
- Cardinality budgets per service, enforced by dropping or aggregating offending attributes.
- Redaction happens before export, never in the back end.
- Load-balancing exporters route all spans of one trace to the same sampler.
Deliverables
- Collector configuration with tests for redaction rules
- Sampling policy and cardinality budget
- Monthly telemetry volume and cost report
Schema changes without maintenance windows
Every schema change is split into small deployable phases so the database and two application versions can coexist, and every phase can be reversed on its own.
Flow
- Expand: add the new column, table or index in a backward-compatible way (nullable, concurrent index build).
- Dual write: the new application version writes both old and new structures.
- Backfill: existing rows are migrated in small, throttled batches with progress tracking.
- Switch reads: reads move to the new structure behind a flag and are verified.
- Contract: the old structure is dropped only after reads have been proven and a rollback is no longer needed.
Design decisions
- Lock timeouts on every migration statement so a blocked change fails fast instead of queueing traffic.
- Backfills run as resumable jobs, not as a single UPDATE.
- CI rejects migrations that rewrite a table or take strong locks without an explicit override.
- Each phase is a separate deployment with its own rollback instructions.
Deliverables
- Migration playbook and pull-request template
- CI lint rules for dangerous DDL
- Backfill job framework with throttling
Tenant isolation as a configurable tier
A multi-tenant platform that can host most tenants cheaply in a shared pool and move the few that need it to stronger isolation — without separate code paths.
Flow
- Every request carries a tenant identifier derived from the authenticated token, never from user input.
- A tenant router looks up the tenant's tier and quotas.
- Pool tenants share databases protected by row-level security and per-tenant connection and query limits.
- Bridge tenants get a schema of their own in a shared cluster.
- Silo tenants get dedicated databases and workers; moving between tiers is a planned migration.
Design decisions
- Tenant context is set once per connection or transaction and verified in tests.
- Quotas exist at every shared resource: connections, queue depth, storage, request rate.
- Tier is configuration, so the application code does not branch on tenant size.
- Cross-tenant access tests run in CI for every data-access change.
Deliverables
- Isolation model and tier criteria
- Row-level security policies with automated tests
- Tenant migration runbook between tiers
Progressive delivery with automated analysis
New versions reach users in steps, and a machine — not a person watching a dashboard — decides at each step whether to continue or roll back.
Flow
- The new version is deployed next to the current one without traffic.
- A small share of traffic (for example 1%) is shifted to it.
- Automated analysis compares error rate, latency and saturation with the stable version.
- If the analysis passes, traffic increases in steps; if it fails, traffic returns to the stable version automatically.
- After full promotion, the previous version is kept briefly for fast rollback and then removed.
Design decisions
- Analysis compares canary against the current baseline, not against fixed thresholds alone.
- Database changes follow expand/contract so both versions can run at once.
- Steps and pauses are tuned to traffic volume so each step sees enough requests to judge.
- Manual promotion is possible but requires a recorded reason.
Deliverables
- Rollout definitions and analysis templates
- Dashboards comparing canary and stable
- Rollback drill report
Credential rotation with an overlap window
Secrets are versioned, fetched at runtime and rotated on a schedule; for a short window both the old and new credential work, so no client has to restart at the same moment.
Flow
- A new credential version is issued while the current one stays active.
- Both versions are accepted during an overlap window longer than the slowest client refresh.
- Clients pick up the new version through runtime reload or a short cache TTL.
- Authentication metrics per version confirm that the old version is no longer used.
- The old version is revoked and the event is recorded in the audit log.
Design decisions
- Prefer dynamic, short-lived credentials where the target supports them.
- No secrets in images, repositories or CI logs; scanning blocks them at commit time.
- Rotation is tested regularly, not only after an incident.
- Emergency rotation uses the same automation with a shorter window.
Deliverables
- Secret inventory with owners and rotation intervals
- Rotation automation and runbook
- Alerts on stale or unused credentials
A localisation pipeline for documentation and product text
English source text is extracted with context, reused through a translation memory and reviewed per locale before it is built and published — with an explicit fallback when a translation is missing.
Flow
- Source strings are written in English with keys, descriptions and length limits.
- Extraction runs in CI and pushes new or changed strings to the translation memory.
- Translators work with a shared glossary; native reviewers approve each locale.
- Builds are produced per locale; missing strings fall back to English and are reported.
- Published pages declare their language and link alternates only for reviewed locales.
Design decisions
- Plurals, dates and numbers are formatted by the locale library, never by string concatenation.
- Untranslated pages are not indexed as separate language versions.
- Glossary terms for technical concepts are fixed early and versioned.
- Pseudo-localisation in CI catches truncation and hard-coded text.
Deliverables
- String extraction and CI checks
- Glossary and style guide per locale
- Fallback and indexing rules
Blueprints describe generic patterns. Where they draw on client work, details are generalised and covered by confidentiality agreements; no client names, dates or results are disclosed.