← Back to all products

System Design Visual Guide

$19

Architecture diagrams for 25+ common systems: URL shortener, chat app, rate limiter, distributed cache, and notification service.

📁 7 files🏷 v1.0.0
MarkdownJSONYAML

📄 Product Preview

Try the interactive reader and demo tools below, or get the full product with all content unlocked.

📖 Interactive Reader (Free Preview) ⚙ Try Demo Tools 📦 Download Free Sample

📁 File Structure 7 files

system-design-visual-guide/ ├── LICENSE ├── README.md ├── config.example.yaml ├── docs/ │ ├── checklists/ │ │ └── pre-deployment.md │ ├── overview.md │ └── patterns/ │ └── pattern-01-standard.md └── templates/ └── config.yaml

📖 Documentation Preview README excerpt

System Design Visual Guide

26 classic system designs with ASCII architecture diagrams, component breakdowns, data flows, scaling strategies, and trade-off analysis. Built for engineers preparing for design interviews or architecting production systems.

Who This Is For

  • Software engineers preparing for system design interviews at top tech companies
  • Backend/platform engineers designing new systems from scratch
  • Tech leads running design reviews who need a quick reference for standard patterns
  • Architects who want a checklist of scaling concerns for common system types

What's Inside

System Design Files

#FileSystemKey Patterns
1cheatsheets/01-url-shortener.mdURL ShortenerBase62 encoding, read-heavy caching, 301 vs 302
2cheatsheets/02-paste-bin.mdPaste BinObject storage, TTL expiry, content hashing
3cheatsheets/03-rate-limiter.mdRate LimiterToken bucket, sliding window, distributed counters
4cheatsheets/04-chat-application.mdChat ApplicationWebSockets, fan-out, presence, message ordering
5cheatsheets/05-notification-service.mdNotification ServicePriority queues, multi-channel delivery, retry
6cheatsheets/06-distributed-cache.mdDistributed CacheConsistent hashing, eviction, cache-aside vs write-through
7cheatsheets/07-load-balancer.mdLoad BalancerL4 vs L7, health checks, sticky sessions
8cheatsheets/08-web-crawler.mdWeb CrawlerURL frontier, politeness, deduplication
9cheatsheets/09-newsfeed-system.mdNews FeedFan-out on write vs read, ranking, pagination
10cheatsheets/10-search-autocomplete.mdSearch AutocompleteTrie, prefix matching, frequency ranking
11cheatsheets/11-file-storage-service.mdFile Storage ServiceChunking, dedup, metadata DB, CDN
12cheatsheets/12-video-streaming.mdVideo StreamingTranscoding pipeline, adaptive bitrate, CDN
13cheatsheets/13-distributed-message-queue.mdMessage QueuePartitioning, consumer groups, ordering guarantees
14cheatsheets/14-key-value-store.mdKey-Value StoreLSM trees, WAL, replication, consistent hashing
15cheatsheets/15-unique-id-generator.mdUnique ID GeneratorSnowflake, UUID, clock skew, coordination-free
16cheatsheets/16-payment-system.mdPayment SystemIdempotency, double-entry, reconciliation
17cheatsheets/17-authentication-service.mdAuth ServiceJWT, OAuth2, session management, MFA
18cheatsheets/18-email-service.mdEmail Sending ServiceQueue-based delivery, bounce handling, rate limiting
19cheatsheets/19-logging-monitoring.mdLogging & MonitoringLog aggregation, metrics pipeline, alerting
20cheatsheets/20-cdn.mdContent Delivery NetworkEdge caching, origin shielding, cache invalidation
21cheatsheets/21-api-gateway.mdAPI GatewayRouting, auth, throttling, request transformation
22cheatsheets/22-task-scheduler.mdTask SchedulerCron, job locking, dead letter queues
23cheatsheets/23-social-graph.mdSocial GraphAdjacency lists, graph DB, fan-out, mutual friends
24cheatsheets/24-geolocation-service.mdNearby SearchGeohashing, quadtrees, spatial indexing
25cheatsheets/25-recommendation-engine.mdRecommendationsCollaborative filtering, feature store, A/B testing
26cheatsheets/26-ticket-booking.mdTicket BookingSeat locking, optimistic concurrency, waitlists

Examples

FileDescription
examples/sample-architecture-spec.mdA filled-in architecture design document for a real system
examples/capacity-estimation-template.mdBack-of-envelope estimation worksheet with formulas

Printable View

FileDescription
cheatsheet.htmlSelf-contained HTML — open in browser, print to PDF

How to Use

1. Interview prep: Work through each system in order. Try drawing the diagram yourself first, then compare.

... continues with setup instructions, usage examples, and more.

📄 Content Sample cheatsheets/01-url-shortener.md

System Design: URL Shortener

Requirements

Functional: Shorten a long URL into a compact short URL. Redirect short URL to the original. Optional: custom aliases, expiration, analytics (click count).

Non-Functional: Low latency redirection (< 50ms). High availability (99.99%). Read-heavy (100:1 read:write ratio). Short URLs must be unique and unpredictable.

Capacity Estimation

MetricValue
New URLs/month100M
Reads/month10B (100:1 ratio)
Write QPS~40
Read QPS~4,000 (peak: ~8,000)
Storage/URL~500 bytes (URL + metadata)
Storage/year~600 GB
Short code length7 characters (Base62 = 62^7 = 3.5 trillion combinations)

Architecture Diagram


  Client                                                  Analytics
    │                                                     Pipeline
    │  POST /shorten {"url": "https://..."}                 │
    ▼                                                       │
┌────────┐     ┌──────────────┐     ┌───────────────┐       │
│  Load  │────►│  API Server  │────►│   Key Gen     │       │
│Balancer│     │  (Stateless) │     │   Service     │       │
└───┬────┘     └──────┬───────┘     │ (Pre-generate │       │
    │                 │             │  Base62 keys) │       │
    │                 │             └───────────────┘       │
    │                 ▼                                     │
    │          ┌──────────────┐                             │
    │          │   Database   │                             │
    │          │  (Key→URL    │                             │
    │          │   mapping)   │                             │
    │          └──────────────┘                             │
    │                 ▲                                     │
    │                 │ cache miss                          │
    │  GET /:code     │                                    │
    ▼                 │                                     │
┌────────┐     ┌──────┴───────┐     ┌───────────────┐      │
│  Load  │────►│  Redirect    │────►│    Cache       │      │
│Balancer│     │  Service     │     │   (Redis)     │      │
└────────┘     │  (Stateless) │     │  Hot URLs     │      │
               └──────────────┘     └───────────────┘      │

*... and much more in the full download.*
Buy Now — $19 Back to Products