π Live Demo: https://niranjanxprt.github.io/dukaan-system-design/
An interactive web application that visualizes the complete architectural evolution of Dukaan from a single 512MB server to a globally distributed system handling millions of users, as documented in "The Accidental CTO" by Subhash Choudhary.
Problem Solved: The interactive flowchart now properly displays all 19 chapters with:
- β All chapters visible as connected nodes
- β Proper positioning and colors for each chapter
- β Interactive connections showing the evolution path
- β Chapter counter showing "19 of 19 chapters"
- β Zoom, pan, and reset controls
- β Detailed chapter information on click
- All 19 chapters displayed as connected nodes
- Color-coded categories (Crisis, Architecture, Scaling, etc.)
- Clickable nodes that open detailed chapter information
- Zoom and pan controls for better navigation
- Connection lines showing the evolution path
- Chapter icons and hover effects
- Chronological progression through the scaling journey
- Detailed chapter cards with technology tags
- Responsive timeline design
- Comprehensive explanations of key concepts
- CAP Theorem, scaling strategies, caching patterns
- Visual theory cards with applications
- Before/after comparisons for each stage
- Grouped by architectural milestones
- Clear progression from monolith to distributed system
- Chapter 1: The 3 AM Phone Call - Resource contention crisis
- Chapter 2: WhatsApp PDF Problem - MVP foundation
- Chapter 3: The Great Divorce - App-database separation
- Chapter 4: Traffic Cop - Load balancing
- Chapter 5: Database Bouncer - Read replicas
- Chapter 6: Staging Environment - SDLC maturity
- Chapter 7: Redis Caching - Performance optimization
- Chapter 8: Breaking Monolith - First microservice
- Chapter 9: Kafka Consistency - Event-driven architecture
- Chapter 10: Docker Revolution - Containerization
- Chapter 11: Smart Search - Elasticsearch integration
- Chapter 12: CDN Assets - Global content delivery
- Chapter 13: Kubernetes Conductor - Container orchestration
- Chapter 14: Shark Tank Effect - Traffic surge handling
- Chapter 15: Global Edge Network - Worldwide distribution
- Chapter 16: Tech Leadership - Public recognition
- Chapter 17: Bare Metal Escape - Cost optimization
- Chapter 18: Live Failover - Resilience demonstration
- Chapter 19: Accidental CTO - Journey reflection
- CAP Theorem: Consistency, Availability, Partition Tolerance
- Horizontal vs Vertical Scaling: Trade-offs and decisions
- Database Replication: Master-slave, read replicas
- Caching Strategies: Cache-aside, event-driven invalidation
- Load Balancing: Algorithms and fault tolerance
- Microservices Patterns: Strangler Fig, service boundaries
- Event-Driven Architecture: Kafka, CDC with Debezium
- Containerization: Docker benefits and orchestration
- Global Distribution: CDN, edge computing, Anycast
Visit the live application: https://niranjanxprt.github.io/dukaan-system-design/
- Clone the repository:
git clone https://github.com/niranjanxprt/dukaan-system-design.git cd dukaan-system-design - Open
index.htmlin your web browser - No build process required - pure HTML/CSS/JavaScript
- Fork this repository
- Go to Settings β Pages
- Select "Deploy from a branch" β main
- Your site will be live at
https://yourusername.github.io/dukaan-system-design
βββ index.html # Main application
βββ style.css # Complete styling
βββ app.js # All functionality + complete data
βββ README.md # Documentation
- All 19 chapters now visible (previously only showing 1)
- Proper node positioning with logical flow layout
- Connection lines between sequential chapters
- Chapter counter displays correct count
- Zoom/pan controls working properly
- Visual hierarchy with colors and icons
- Complete chapter data for all 19 chapters
- Proper positioning coordinates for each node
- Full problem/solution descriptions
- Technology stack information
- Architecture before/after details
- Modal dialogs with comprehensive chapter details
- Search and filter functionality
- Responsive design for all devices
- Smooth animations and transitions
512MB Server β Global Distributed System
- Single Server Crisis (512MB resource exhaustion)
- MVP Foundation (Django + PostgreSQL)
- Vertical Separation (App + DB servers)
- Horizontal Scaling (Load balancer + multiple apps)
- Database Scaling (Read replicas + master-slave)
- Process Maturity (Staging + CI/CD)
- Performance Optimization (Redis caching)
- Microservices (Service extraction)
- Event Architecture (Kafka + Debezium)
- Containerization (Docker deployment)
- Search Service (Elasticsearch)
- Global Delivery (CDN implementation)
- Orchestration (Kubernetes)
- Traffic Resilience (Auto-scaling)
- Global Distribution (9 worldwide regions)
- Thought Leadership (Public recognition)
- Cost Optimization (Bare metal migration)
- Resilience Proof (Live failover)
- Journey Reflection (CTO philosophy)
This application is based on "The Accidental CTO: How I Scaled from Zero to a Million Stores on Dukaan, Without a CS Degree" by Subhash Choudhary.
Educational project for learning system design concepts. Please support the original author by purchasing the book.
π The interactive flowchart is now fully functional with all 19 chapters properly displayed and connected!