Architecture

Software architecture patterns and system design for production. Event-driven systems, microservices, message queues, CQRS, and the trade-offs behind every major design decision.

6 articles

CQRS and Event Sourcing: A Practical Introduction
Architecture

CQRS and Event Sourcing: A Practical Introduction

CQRS separates read and write models for independent optimization. Event Sourcing stores every state change as an immutable event. Learn when each pattern solves real problems, with TypeScript implementations, projection examples, and event store comparisons.

12 min read·
Rate Limiting: Token Bucket, Leaky Bucket, Sliding Window, and Fixed Counter
Architecture

Rate Limiting: Token Bucket, Leaky Bucket, Sliding Window, and Fixed Counter

Compare the four main rate limiting algorithms -- Token Bucket, Leaky Bucket, Sliding Window Log, and Fixed Window Counter. Includes Redis Lua implementations, nginx configuration, distributed rate limiting patterns, and managed service pricing.

12 min read·
API Design Patterns: REST vs GraphQL vs gRPC Compared
Architecture

API Design Patterns: REST vs GraphQL vs gRPC Compared

REST for public APIs, GraphQL for complex frontends, gRPC for service-to-service. Learn when to use each API design pattern, with comparisons of error handling, versioning, authentication, and managed gateway pricing.

10 min read·
Microservices vs Monolith: The Decision Framework Engineers Actually Use
Architecture

Microservices vs Monolith: The Decision Framework Engineers Actually Use

The microservices vs monolith decision depends on team size, deployment needs, and organizational structure. Learn the five-question decision framework, the Strangler Fig migration pattern, and why most teams should start with a well-structured monolith.

10 min read·
The CAP Theorem: What It Actually Means for Your Database Choices
Architecture

The CAP Theorem: What It Actually Means for Your Database Choices

The CAP theorem forces a trade-off between consistency and availability during network partitions. Learn how PostgreSQL, Cassandra, DynamoDB, and other databases handle this trade-off, plus the PACELC extension that captures what CAP misses.

11 min read·
Event-Driven Architecture: When It Makes Sense and When It Doesn't
Architecture

Event-Driven Architecture: When It Makes Sense and When It Doesn't

Event-driven architecture decouples services through message brokers like Kafka, RabbitMQ, and SNS/SQS. Learn when EDA is the right choice, how to implement it, and the patterns that make it work in production.

13 min read·

Stay in the loop

New articles delivered to your inbox. No spam.