System Design Skills
๐ฏ System Design in Practice: The GitHub Perspective
System design is a skill that fundamentally separates good engineers from great ones. This set of notes captures practical insights from a senior engineer at GitHub on how to approach system design, scaling, and software engineering with a business-focused mindset.
๐งฑ The Principle of Minimal Viable Scale
A lot of people want the status associated with fancy architectures, and they want the experience of working with fancy architectures โ not necessarily solving problems with fancy architectures.
Many engineers over-engineer their systems, designing for massive scale long before it is needed. The boundaries for when to scale are very blurry, and there are no concrete empirical numbers telling anyone when to make specific architectural changes. People often assume that hitting 1,000 requests per second is "a lot" and start building for the next evolution of the system โ but this is frequently unnecessary.
At GitHub, some services handle millions of requests per second running on only 5 or 6 containers in a tiny Kubernetes cluster. Much can be accomplished with very little computing power.
Key Insight: Premature Scaling Is a Trap
Engineers often chase the status associated with working on complex, scalable architectures
The desire for the experience of working with fancy systems can override the actual need for them
A startup or small company should never design for 100x scale, even if the founder believes the idea will reach global adoption
The best approach: design for getting 100 users, maybe 1,000, and run everything on a single VM with perhaps one or two database nodes with replication
๐ Vertical Scaling: The Overlooked Powerhouse
Vertical scaling can take systems remarkably far. Modern cloud-native solutions provide access to machines with:
120 CPU cores on a single VM
Terabytes of memory
Many engineers jump to horizontal scaling (sharding, distributed systems) before they truly hit the limits of vertical scaling. The simpler approach of upgrading to a larger machine can solve scaling problems for a very long time without introducing the complexity of distributed architectures.
๐ Designing for the Next Order of Magnitude
When GitHub decided to rewrite parts of GitHub Actions, the team knew they had reached the limits of the previous architecture. They had established scale โ actual data showing demand, growth curves, and projections for where usage would be in five years.
The Process of Scaling Intentionally
Let the existing architecture run all the way to its limits
Collect real data about current usage and growth patterns
Make projections based on observable trends (usage curves, feature adoption, market signals)
Only then make decisions about rewriting, redesigning, or introducing new technologies
Make tradeoffs based on actual data and verified projections
Software is not built โ it is evolved. It needs to continuously fight entropy and requires ongoing maintenance.
Why Designing for Decades Fails
Very few technologies in the software industry last for a decade or more. Investing in a solution that will last 10โ30 years is often wasted effort because:
Technology stacks change frequently
Business needs evolve unpredictably
The maintenance cost of software is high and ongoing
The recommended approach: design for the next order of magnitude (10x), then evolve from there. This requires another round of investment when that limit is reached, then another for the next 10x, and so on.
๐ฏ Solving Specific Problems Over Generic Solutions
How can you make tradeoffs when solving a generic problem? In software, there are always tradeoffs.
The Preference for Specificity
Building something super generic โ essentially a framework or toolbox that solves hypothetical problems โ is not an effective north star for system design. The correct approach is to:
Solve for the problems you have today
Only introduce caching when it is truly needed
Never over-optimize until problems actually appear
Start with regular relational databases โ they can go very far
Only consider NoSQL or non-relational solutions when database primaries cannot keep up, IO is too high, and sharding is no longer viable
When to Pre-optimize
There are exceptions: if the team knows they will hit a specific problem in a few months and will not get the investment to fix it later, solving it now makes sense. But this should be a deliberate, data-driven decision, not a default behavior.
โ๏ธ The Tradeoff Between Simplicity and Scale
Simple is complicated enough, especially at scale.
At GitHub, the philosophy is to write code in the dumbest, most simple way possible. This is why languages like Go are valued โ the code is straightforward, everything is visible, and tracing through the logic is easy.
At scale, abstracting away complexity creates problems:
Reasoning about abstractions becomes difficult
Edge cases become harder to anticipate
Memory leaks become catastrophic
Garbage collection pauses can cause multi-second latency on API requests
By keeping things simple and easy to reason about, engineers avoid these compounding issues.
๐ผ Business Context: The Engineer's Responsibility
When you work professionally as a software engineer, this is not practicing a hobby.
Shifting from Craft to Business Impact
A crucial skill for senior engineers is the ability to understand business constraints and discuss technical solutions within those constraints. Rather than expecting business stakeholders to understand technical complexity, engineers should:
Learn the business language โ understand revenue, margins, projections, and strategic goals
Translate technical problems into business impact โ "This database issue will delay shipments by X minutes, costing $Y per hour"
Understand who is funding the investment and what drives the current decisions
Get closer to the business side rather than demanding the business understand the technical side
Measuring Impact, Not Technical Beauty
In many top tech companies, rewards, bonuses, and growth are tied to business impact โ not engineering impact. Building the most impressive Kubernetes cluster means nothing unless it can be justified by:
Contribution to revenue
Customer acquisition or retention
Developer experience improvement (with measurable numbers)
You need to have numbers โ not just fluffy words. What was the actual landed impact on the business?
Real-World Example: Container Terminals
In the container terminal industry, delays cost approximately $50,000 per hour (operating at 12% capacity). Software failures during crane operations can be life-threatening. Engineers in this context must discuss problems in terms of:
Time windows for ship unloading
Cost per minute of delay
Safety implications of system failure
This required sitting with every individual โ truck drivers, crane operators, terminal managers โ to truly understand their daily experience before proposing technical solutions.
๐งช The GitHub Approach to Technology Adoption
GitHub's engineering process for introducing new technologies follows a clear pattern:
Starting Simple
Begin with regular relational databases and regular tables
Only move toward NoSQL when relational consistency becomes a bottleneck
Never introduce caching before it is needed
Progressive Complexity
Start simple
Hit real limits
Evaluate options (application-layer sharding, new database technologies)
Design migration paths
Execute migrations (which are painful but part of the job)
Continuous Re-evaluation
Revisit technology investments quarterly, half-yearly, or yearly
Make projections for 3โ5 years (with decreasing confidence over time)
Adjust based on actual growth curves and market signals
๐จ Craftsmanship vs. Business Value
Sometimes solving business problems means building software that is good enough โ good enough for today. It doesn't have to be good enough for tomorrow.
The Dogma of Code Quality
Many engineers were raised on principles of code elegance, cleanliness, and quality. These are important โ bad code is difficult to maintain and causes problems for future engineers. However, there is a spectrum:
One extreme: Sloppy code that no one can maintain
The other extreme: Over-engineered, over-abstracted code that takes years to become proficient at reading
Neither extreme is optimal. The healthy middle ground is to:
Write code that is functional and maintainable
Drop the last 20% of esthetic perfection when it does not serve the business need
Prioritize getting the job done over making code beautiful
When "Good Enough" Is Truly Enough
Sometimes no engineer will touch certain code for decades. In those cases, it is fine if the code is not elegant โ as long as it just works. Not every piece of software needs to be a masterpiece.
๐ The Role of AI and Changing Engineering Work
At GitHub, approximately 90% of code written by one senior engineer is now generated by AI agents. The shift is not about eliminating coding โ it is about reallocating focus to higher-value activities:
Operational problems โ ensuring the system never goes down
Bug prevention โ avoiding unnecessary bugs that cause user pain
Architecture decisions โ choosing the right approach over writing the code
Performance analysis โ using AI to write benchmarks and analyze results in minutes instead of days
Example: Caching Problem Solved with AI
When solving a caching problem with different key structures, the engineer prompted the AI agent to:
Write three distinct benchmarks for different approaches
Run all benchmarks
Analyze the results
Provide recommendations
This process, which would have taken 2โ3 days manually, was completed in 20 minutes.
๐ง Developing as a Software Engineer
The Ability to Learn Fast
The next phase we're heading into is going to require people to be able to learn really fast, get out of their comfort zone really fast, dig deep really fast, and attain high levels of functional proficiency in any new area.
Mastery is not required in everything. The key is to:
Pick a few topics where mastery is attained
Increase breadth across many other areas
Develop the ability to reach working proficiency quickly in any new domain
Curiosity as a Muscle
Curiosity is something that must be developed and exercised like a muscle. Approaching the world from a curious vantage point is more effective than being dogmatic or stubborn.
The benefits of broad curiosity include:
The ability to cross-pollinate ideas from different disciplines
A more diversified view of the world
Greater ability to empathize with different people and understand their perspectives
Drawing from experiences in business, finance, investments, and other domains when solving problems
The Mentor's Lesson
Early mentors taught the value of business context, though it took time to understand. When a mentor took an extra mortgage on their house to pay payroll for employees, the abstract concept of "business constraints" suddenly became very real. Company owners are not all millionaires โ many are investing their own money and taking real personal risk. Understanding this transforms how technical solutions are proposed and discussed.
๐ Summary of Key Principles
For System Design
Start simple โ one VM, one database, basic replication
Scale vertically before considering horizontal approaches
Design for the next order of magnitude (10x), not for 10 years
Solve specific problems rather than building generic frameworks
Introduce complexity only when data shows it is necessary
For Career Growth
Develop rapid learning ability โ get to working proficiency in any domain quickly
Understand business context โ learn the language of revenue, cost, and impact
Measure success by business impact โ not by technical elegance
Stay curious โ explore different disciplines and cross-pollinate ideas
Drop the last 20% of perfection when it does not serve the business need

Ask anything
We've read this whole study set, so questions about it get the best answers.