A curated list of selected readings to illustrate Scalability, Availability, and Stability Design Patterns in Back-end Development.
Understand your problems: performance problem (slow for a single user) or scalability problem (fast for a single user but slow under heavy load) by reviewing some basic design concepts.
"Even if you lose all one day, you can build all over again if you retain your calm!" - Thuan Pham, CTO at Uber Technologies Inc.
Please take a look at the contribution guidelines first. Contributions are always welcome!
- CAP theorem and the trade-offs
- Scale up vs Scale out
- How to deal with latency
- What is ACID?
- Architecture issues: Bottlenecks, Database, CPU, IO
- Performance and Scalability patterns
- Advantages and drawbacks of Microservices
- Avoid Overengineering
- Don't Repeat Yourself (DRY)
- Design for Loose-coupling
- Design for Resiliency
- Design for Self-healing when failures occur
- Design for Scale out
- Design for Evolution
- Distributed Caching
- Distributed Logging & Tracing
- Distributed Messaging
- Storage
- NoSQL
- RDBMS
- Why SQL is beating NoSQL, and what this means for the future of data
- Sharding MySQL at Pinterest
- How Airbnb Partitioned Main MySQL Database in Two Weeks
- Replication is the Key for Scalability & High Availability
- How Twitch uses PostgreSQL
- Scaling MySQL-based financial reporting system at Airbnb
- Scaling to 100M at Wix: MySQL is a Better NoSQL
- Why Uber Engineering Switched from Postgres to MySQL
- Handling Growth with Postgres at Instagram
- HTTP Caching
- Concurrency
- Event-Driven Architecture
- Load Balancing
- Parallel Computing
- Circuit Breaker
- Always use timeouts (if possible)
- Let it crash/Supervisors: Embrace failure as a natural state in the life-cycle of the application
- Crash early: An error now is better than a response tomorrow
- Bulkheads: Partition and tolerate failure in one part
- Steady state: Always put logs on separate disk
- Throttling: Maintain a steady pace
- Multi-clustering: Improving Resiliency and Stability of a Large-scale Monolithic API Service at LinkedIn
- Scalable Gaming Patterns on AWS (Sep 2017)
- Building a Modern Bank Backend
- Best Practices For Horizontal Application Scaling (by Shekhar Gulati - OpenShift)
- Harvard CS75 - Lecture 9: Scalability
- How We've Scaled Dropbox - Kevin Modzelewski, Back-end Engineer at Dropbox
- Lessons of Scale at Facebook - Bobby Johnson, Director of Engineering at Facebook
- Scaling Instagram Infrastructure - Lisa Guo, Instagram Engineering
- Scaling Pinterest - Marty Weiner, Pinterest’s founding engineer
- Designing for Failure: Scaling Uber's Backend by Breaking Everything - Matt Ranney, Chief Systems Architect at Uber
- Jonas Bonér, CTO at Lightbend, for the original inspiration