databases
During a rolling deploy, old and new code share one database, so a schema change has to work for both. This article walks through expand and contract, safe backfills, validation, rollback windows and the incidents that show why each step matters.
reliability-engineering
A backup link can fail over perfectly while the system still degrades, because the work it inherits hits a limit somewhere else. This article walks through failure-state capacity, shared failure domains, packet processing, RSS and how to benchmark what happens after a link fails, drawing on a small Raspberry Pi testbed.
cloud-infrastructure
Kubernetes can report a successful rollout while users see 502s, 503s and connection resets. This article follows one request through Pod termination and covers what has to happen (draining, probes, grace periods, capacity) for a rollout to be zero-downtime in practice.
distributed-systems
Saving to a database and publishing to Kafka look like one step in code, but they're two separate commits that can disagree. This article explains the dual-write problem and how the transactional outbox, idempotent consumers and reconciliation make it recoverable.
security
A user can be correctly signed in and still receive another customer's data. This article explains why tenant isolation is separate from authentication, and how to carry and enforce tenant context through queries, caches, jobs, tokens and admin tools.
cloud-infrastructure
Lambda can add capacity far faster than the databases, caches and third-party APIs behind it. This article covers how to work out how much concurrency the whole request path can take, and the limits, queues and tests that keep elastic compute from overwhelming everything else.
reliability-engineering
Every component can report healthy while the thing users actually care about is failing. This article covers why that happens (averages, aggregates, retries, queues, HTTP 200s with wrong data) and how to build monitoring around whether the work actually got done.
distributed-systems
In a local-first app, a reconnected socket doesn't mean the documents are back in sync. This article explains what reconnection has to guarantee, from keeping offline edits and merging replicas to rebuilding presence and knowing when it's honest to say "synced".
performance-engineering
Adding threads helps a Java service until CPU, database connections, locks, memory or a downstream dependency becomes the real limit. This article explains why, what virtual threads do and don't change, and how to find a concurrency level that gives useful throughput instead of overload.
distributed-systems
Consumer lag tells you how far behind a Kafka consumer group is, not why. This article walks through the usual causes (rate mismatch, hot partitions, slow dependencies, rebalances, poison records) and how to tell them apart before scaling.
cloud-infrastructure
Why a successful S3 deployment can still look stale behind CloudFront, how invalidation fixes it, and how to automate that step with GitHub Actions.
distributed-systems
A cache added to make things faster can quietly become the thing keeping the database alive. This article covers how that happens, and how to handle stampedes, stale data, bounded fallback, hot keys and format changes so losing the cache doesn't take everything else down.
databases
A Cassandra schema can look great at launch and degrade slowly as data grows unevenly, deletes pile up and maintenance falls behind. This article explains how partition design ages, why the damage shows up in tail latency first, and how to design for the worst partition rather than the typical one.
distributed-systems
Once an API runs on many servers, a rate limiter needs shared state, and that state can be slow, stale or unreachable. This article covers how to decide how accurate a limiter needs to be, and what it should do when its own backend fails.
distributed-systems
Retries hide brief failures, but every extra attempt is extra load on a system that may already be struggling. This article covers when a retry helps, when it hurts, and the controls (backoff, jitter, deadlines, retry budgets, idempotency) that keep retries safe.
distributed-systems
Kafka's exactly-once semantics cover reading, processing and writing inside Kafka, but not the database, payment API or email that an event triggers. This article explains what Kafka guarantees, where that guarantee stops, and how idempotency covers the rest.
distributed-systems
Webhooks can arrive twice, late, out of order or not at all. This article walks through verifying, durably accepting, deduplicating and processing them so the business outcome stays correct, based on building Stripe payment flows.