Skip to main content

Architecture

Browse all articles, tutorials, and guides about Architecture

10posts

Posts

DevOps
|15 min read

Getting a Row Change Out of Postgres Without Dual-Writing

Your service writes to Postgres and publishes to Kafka, and one day those two disagree. The fix is to make the database the only writer and read changes from its log: the outbox pattern, logical decoding, and the replication-slot failure mode that quietly fills your primary's disk, demonstrated live with real numbers.

DevOps
|15 min read

How Discord Stores Trillions of Messages With a Tiny Team

Discord went from 12 database nodes to 177 to 72, while message volume went from billions to trillions. The interesting part is not the migration to ScyllaDB; it is what they built in front of the database, and what their three worst problems teach anyone running a hot datastore at any scale.

DevOps
|13 min read

WAL as the Source of Truth: What Lakebase Storage on S3 Means for You

Neon published a deep dive on the storage engine behind Lakebase Postgres: the write-ahead log is the database, S3 holds the history, and Postgres itself runs stateless on top. This is the reader-level version, with a hands-on session where we watch LSNs move, delete a table, and branch back to the moment before the mistake in under a second.

Networking
|17 min read

WebSockets Are the Easy Part

Opening a WebSocket takes twenty lines. Reconnection, resume-from-cursor, presence, fan-out and backpressure are the actual product, and they are why realtime systems fail in month two instead of day one. Here is each problem, what it looks like in production, and an honest build-vs-buy section.

DevOps
|14 min read

6 Apache Kafka Use Cases, and When You Do Not Need Kafka

Six patterns where Kafka genuinely earns its operational cost, what each one looks like in practice, and the failure mode nobody mentions until you are already running it in production.

DevOps
|19 min read

A Postgres Branch Per Learner: Building on Neon

Every hands-on lab gets its own Postgres branch, AI generation runs outside the request cycle, and cleanup is core infrastructure rather than a chore.

DevOps
|17 min read

Running a Background Job That Must Not Be Lost

A queue gets your job to a worker, not to the finish line. What happens when the worker dies halfway, and a durable executor in 90 lines of TypeScript.

DevOps
|9 min read

Neon Is Becoming a Backend Platform, Not Just Postgres

In June 2026 Neon added serverless functions, S3-compatible object storage, and an AI gateway to its database. The interesting part is not any one feature, it is the through-line: everything branches with your data. Here is what shipped, what it competes with, and where the seams still show.

AWS
|13 min read

How to Design a Multi-Region Active-Active Architecture on AWS

A practical walkthrough of building active-active multi-region apps on AWS: traffic routing with Route 53 and Global Accelerator, data replication with DynamoDB Global Tables and Aurora, and the application changes that make failover actually work.

DevOps
|10 min read

The US Government Pulled Two Frontier Models Overnight. The Real Lesson Is About Your Stack

On June 12, 2026, an export-control directive forced Anthropic to disable Claude Fable 5 and Mythos 5 for every user worldwide, three days after launch. The policy fight is interesting. The operational lesson for anyone building on a single model provider is more urgent.