OPEN ENGINEERING PUBLICATION & SYSTEM DESIGN REFERENCE

Understand the systems behind modern software.

Explore the engineering concepts, infrastructure, and architecture patterns that power real-world applications. Learn how components connect, how systems scale, and why engineering decisions matter.

LIVE ARCHITECTURE SIMULATOR
Nginx L7 Reverse ProxyLoad Balancing & SSL Termination
Throughput: 12,500 QPS• Latency: 14ms

Terminates TLS 1.3, manages 340 open socket file descriptors. Round-robin forwarding to backend workers.

KNOWLEDGE GRAPH

Interactive Architecture Map

Trace how fundamental networking primitives connect to operating system syscalls, distributed caches, and large-scale message brokers. Select any concept to explore its prerequisites and downstream dependencies.

INTERACTIVE ARCHITECTURE KNOWLEDGE MAP

Engineering Concepts, Prerequisites & Dependencies

Click nodes to trace architectural prerequisites, explore upstream invariants, and inspect downstream unlock paths.

Filter:
PrerequisiteBuilds OnBuilds On
BeginnerPREREQ

Computer Networking Invariants

How bytes traverse the wire, OSI boundaries, and network demarcation points.

Beginner

Client-Server Architecture

The foundational request-response paradigm powering distributed internet systems.

Beginner

DNS Resolution & Anycast

Hierarchical name resolution, root servers, recursive caching, and DNS failure modes.

BeginnerUNLOCKS

Request Lifecycle & Transport Protocols

TCP 3-way handshake, TLS 1.3 records, and HTTP/1.1 vs HTTP/2 multiplexing.

IntermediateUNLOCKS

Linux Epoll & File Descriptors

Solving the C10K concurrency bottleneck with O(1) kernel event readiness.

Intermediate

Docker Internals: Namespaces & Cgroups

Creating process isolation using Linux kernel primitives and OverlayFS.

Intermediate

Kubernetes Services Explained

Exposing Pods via ClusterIP, NodePort, and LoadBalancer abstractions.

Intermediate

Reverse Proxies & Load Balancers

Nginx connection pooling, TLS termination, health probes, and round-robin routing.

Intermediate

Redis: In-Memory Caching & Eviction

Sub-millisecond latency, LRU/LFU memory eviction, and thundering herd mitigation.

Intermediate

Asynchronous Queues & Message Brokers

Decoupling peak traffic spikes from database writes with RabbitMQ and worker pools.

Advanced

Kafka: Distributed Commit Logs & Partitions

Sequential disk append-only I/O, page cache exploitation, and consumer rebalancing.

Advanced

Rate Limiting: Token Bucket vs Sliding Window

Algorithms and mathematical invariants for protecting APIs against resource exhaustion.

Advanced

Circuit Breakers & Cascading Outages

Three-state failure detection, timeout budgets, and half-open automated probes.

Intermediate

System Design: High-Throughput URL Shortener

Base62 encoding, 100k QPS read-heavy caching, and B-Tree database indexing.

Advanced

System Design: Real-Time Chat Architecture

Persistent WebSocket gateways, Redis Pub/Sub multiplexers, and message archives.

SELECTED CONCEPT:Foundations & NetworkingBeginnerPUBLISHED GUIDE

Client-Server Architecture

Deconstructs socket creation, state synchronization, client-side timeouts, and stateless service design. Examines why servers maintain connection tables and how client multiplexing scales.

Learn First (Prerequisites)
Unlocks Next (Dependent Concepts)
PROGRESSIVE CURRICULUM

Sequential Learning Paths

Systems engineering cannot be mastered through disconnected summaries. Every phase builds upon the physical invariants and operating system primitives mastered in the previous phase.

LEARNING PATH DEPENDENCY GRAPH

Curriculum Flow & Prerequisites

Click any phase to inspect topics & dependencies
PHASE 01READY TO LEARN

Engineering Foundations

Sockets, Transport Protocols, Hardware & Network Demarcation

PHASE 02INTERMEDIATE

Infrastructure & Linux

Kernel Syscalls, Container Runtimes, Reverse Proxies & In-Memory Caching

Requires: Phase 01
PHASE 03INTERMEDIATE

Backend & Distributed Systems

Message Brokers, Event Streams, Replication & Partitioning

Requires: Phase 02
PHASE 04ADVANCED

Production Engineering

Fault Tolerance, Graceful Degradation, Rate Limiting & SRE

Requires: Phase 03
PHASE 05ADVANCED

System Design Stories

Production Architectural Blueprints & End-to-End Case Studies

Requires: Phase 04
PHASE 06ADVANCED

Advanced Architecture

Multi-Region Active-Active Systems & Distributed Consensus

Requires: Phase 05
SELECTED PHASE 01

Engineering Foundations

Sockets, Transport Protocols, Hardware & Network Demarcation

Explore Phase Guides
✓Client-Server Topology & Network Invariants
✓TCP 3-Way Handshake vs UDP Datagrams
✓DNS Tree Resolution, Root Nameservers & TTL Caching
✓Stateless Protocols & Horizontal Scaling Foundations
CONCEPTS & INVARIANTS

Featured Engineering Topics

View all 15 topics in directory
PACKET LIFECYCLE

How a Request Moves Across the Wire

Step through an HTTP request lifecycle from DNS query and TCP/TLS handshakes to kernel socket buffer allocation, reverse proxying, and cache-aside storage.

STEP 1 OF 6:DNS Resolution
ORIGIN SENDER
Client Browser
UDP Port 53
►
Name Resolution
TARGET RECEIVER
Recursive Resolver
What Is Happening

Host domain "api.complexity.io" is translated into machine routable IP address "198.51.100.24".

Operating System & Socket Level Invariants

Checks OS /etc/hosts cache and invokes getaddrinfo() POSIX syscall.

TECHNICAL GUIDES

First-Principles Architecture Guides

View all 10 guides in index
SYSTEM BLUEPRINTS

Production Architecture Case Studies

Explore all system design blueprints
CUSTOM ARCHITECTURE WORKSPACE

Diagram Studio: Design Systems Directly in Your Browser.

An approachable, vector drawing workspace inspired by Excalidraw—tailored specifically for backend engineers and distributed architects. Connect microservices, trace request lifecycles, and export publication-ready diagrams with zero login required.

• Specialized System Shapes
• Export to PNG, SVG & JSON
• 8 Production Blueprints
• Offline Draft Persistence
three-tier-cluster.complexity.json
Canvas 100%
Client (HTTPS)
API Gateway
App Service
Redis Cache (Sub-ms Latency)
PostgreSQL DB
Tools: [Select] [Pan] [Rectangle] [Arrow] [Systems] Ready to Draw
PEDAGOGICAL INVARIANT

The 7 Questions Behind Every System

Every article, simulation, and case study on Complexity deconstructs engineering choices against these immutable production constraints.

01. Why does it exist?

What historic wall or bottleneck led to its creation?

02. What problem does it solve?

Exactly what pain point does it address?

03. How does it work internally?

Data structures, sockets, and concurrency models.

04. What happens under traffic?

Connection pooling, queue depth, and thread pools.

05. What happens when it fails?

Cascading timeouts and network partitions.

06. What alternatives exist?

Trade-offs and architectural comparison matrices.

07. Why choose it in production?

Operational complexity and maintenance overhead.

08. First-Principles Verified

Zero fake benchmarks or fabricated statistics.