CasesArchitecture
Applications
Integration
Data & IoT
Identity & security
Architecture
Problems that show up in almost every system and how I solve them on each platform: one design, built with AWS, Azure or Google Cloud services, or with open source in your own data centre.
Every case has one shared diagram. Switch platform with the tabs to see which service fills each piece, what to watch out for and which alternatives exist.
Repository with Terraform ↗- 01Frontend, backend and databaseThe foundation of almost every product: an SPA served from a CDN, a stateless containerised API and a relational database, with identity, caching and secrets sorted out from day one.View case →
- 02Serverless APIAn API that goes from zero to a spike without managing servers: the gateway validates the token and enforces rate limits, a stateless function serves each request and a pay-per-use database stores the data encrypted under your own key.View case →
- 03Microservices on KubernetesSeveral services deployed and scaled independently on a managed cluster: an ingress gateway, mTLS between services through a service mesh, one database per service, secrets kept outside the cluster and deployments driven from Git.View case →
- 04Multi-tenant SaaSServe many organisations from a single platform without any of them seeing another's data: identity per organisation, tenant context on every request, a shared database with RLS for most customers and dedicated silos for those who pay for or require them.View case →
- 05Static sites and JamstackWebsites, docs and landing pages generated at build time and served from a CDN, with a little edge logic and one function for forms: the cheapest and lowest-maintenance case in the whole catalogue.View case →
- 06Real time with WebSocketsChat, presence, collaboration, live scores or self-updating dashboards: persistent connections with thousands of clients, message fan-out across instances and push notifications when the user is offline.View case →
- 07Public API for third partiesExposing your services to partners and external developers as a product: app registration, machine-to-machine OAuth 2.0, plans with quotas, versioning, documentation, analytics and, where it applies, usage-based billing.View case →
- 08Modernising a legacy monolithGetting a legacy application out of the data centre and modernising it piece by piece without a big bang: rehost first, a facade that splits routes between the monolith and new services, and CDC to move data without dual writes.View case →
- 09Queues and background jobsMove everything slow or fragile out of the request-response path: the API enqueues, workers process at their own pace and scale with the queue, and whatever keeps failing ends up isolated in a dead-letter queue.View case →
- 10Event-driven architectureA service publishes business facts ('order created') and several consumers react without the producer knowing about them, with a guarantee that no event is lost between the database and the bus.View case →
- 11Durable orchestration and sagasMulti-step business processes that survive crashes and deployments: a durable orchestrator records progress, retries each step, waits days for a human approval when needed and, if something fails halfway, undoes the completed work with compensations.View case →
- 12Webhooks and resilient integrationsReceive third-party webhooks without losing or duplicating events, and call other people's APIs without their outages dragging you down: verified signature, raw event stored, immediate 2xx, a queue, idempotent processing and outbound calls with timeouts, retries and a circuit breaker.View case →
- 13Multichannel notificationsOne service decides what to notify, to whom and through which channel (email, SMS, push or in-app), honouring preferences and opt-outs, with retries, deduplication and control over domain reputation.View case →
- 14File exchange with partners and banksA single SFTP or AS2 entry point for banks, suppliers and customers, with keys under control, a landing zone, validation and malware scanning, EDI or CSV transformation, idempotency and auditable acknowledgements.View case →
- 15File upload and processingAccept files from users without routing them through the API, check them for malware and extract their content asynchronously, with a status the user can follow.View case →
- 16Data lakehouse on IcebergBring data from operational databases, APIs and files into one open, layered store (bronze, silver, gold) with a central catalogue and permissions, so analysts and BI query with SQL without copying data between systems.View case →
- 17IoT telemetry at scaleConnect thousands of devices with their own identity, receive their telemetry over MQTT, keep their desired configuration even while they are offline, let them upload files without permanent credentials and store readings in a time-series database.View case →
- 18Real-time analytics on streamsFraud detection, clickstream or sensors: events land in a stream, are aggregated in stateful windows, trigger actions within seconds and end up in a real-time OLAP store and in the lake.View case →
- 19Video and image processingDirect uploads to storage with a signed URL, transcoding to HLS/DASH with a bitrate ladder, thumbnails, images resized on the fly and CDN delivery protected by signed URLs or DRM.View case →
- 20Search and catalogueA denormalised search index, fed by change data capture from the database, that delivers relevance, facets, autocomplete and hybrid vector search without becoming a second source of truth.View case →
- 21Production AI with RAGAn assistant that answers from the organisation's own documents, respects each user's permissions, filters what goes in and out, and leaves traces that explain every answer.View case →
- 22Training and serving ML modelsTake a machine learning model from the notebook to production: consistent features between training and serving, reproducible GPU training, a registry with approval, an online endpoint, batch inference and retraining when the data drifts.View case →
- 23Identity and access: people, workloads and keyless CILet people, pipelines and applications reach the cloud with federated identities and short-lived credentials, with no static keys stored anywhere, temporary privileges and everything audited.View case →
- 24Zero Trust access without a VPNGrant access to internal applications by deciding on every request based on who the user is and what state their device is in, instead of trusting that they are inside the network.View case →
- 25Multi-account landing zone and FinOpsPrepare the cloud organisation before the teams arrive: an account hierarchy, guardrails nobody can switch off, centralised security and logs, group-based human access and visible costs from day one.View case →
- 26Hub-and-spoke network: hybrid connectivity, central inspection and private DNSConnect offices, data centres and several cloud networks through a shared hub, with a firewall that inspects traffic between environments and to the internet, private DNS that resolves both ways and managed services with no public exposure.View case →
- 27Compliance and data sovereignty in Spain and the EUHow to deploy a workload holding personal or regulated data so that residency, key control, provider access and audit evidence are guaranteed by design and by policy, not by goodwill.View case →
- 28Observability with OpenTelemetryInstrument services once with OpenTelemetry, ship metrics, logs and traces through a collector to the right backends, and alert on service level objectives (SLOs) that reflect what users notice, without the ingestion bill running away.View case →
- 29Cross-region disaster recoveryKeep serving, or be back within an agreed time, when a whole region fails or someone encrypts or deletes the data: cross-region replication, traffic failover, immutable backups in another account and regular drills.View case →
- 30Product in a site without internet (air-gapped)Deliver, install, upgrade and troubleshoot a product at a site that never connects to the internet, using a signed offline bundle that is carried in by hand and deployed on a single host.View case →
- 31CI/CD and the software supply chainMake sure only images built by your pipeline from reviewed code, scanned, signed and with verifiable provenance reach production, and that the pipeline holds no key worth stealing.View case →
- 32Internal developer platformA portal with a service catalogue and golden-path templates, approved IaC modules, ephemeral environments per pull request that clean themselves up, and cost attributed to each team.View case →