Skip to content

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.

15 articles

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·
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.

16 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.

13 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.

12 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·
← NewerPage 2 of 2

Stay in the loop

New articles delivered to your inbox. No spam.