Avoiding common system design traps: overengineering and missed requirements
Master the ability to translate ambiguous requirements into right-sized system architectures without falling into premature complexity.
MonksBit Desk
November 21, 2026 · 6 min read · 50 views
Read
Requirements-driven system design is the discipline of scoping, sizing, and architecting software systems strictly based on measurable functional and non-functional requirements. It solves the twin failure modes of building inadequate systems that miss core user needs and constructing overengineered architectures whose operational overhead exceeds the actual workload.
You will need. Basic knowledge of client-server architecture · Understanding of relational databases and basic networking
The full lesson
Level 1 · Beginner: Scoping requirements and designing the minimal viable solution
System design begins with quantification rather than technology choices. A common beginner error is immediately choosing distributed databases, asynchronous event queues, and microservices before calculating whether the system requires more than a single server.
Consider a concrete scenario: an internal corporate tool used by 500 support representatives to lookup customer status. The total workload is at most 10 requests per second during peak hours, and the dataset fits comfortably in 2 gigabytes of storage.
Designing a distributed message broker and partitioned data cluster for this workload introduces network latency, deployment overhead, and complex failure handling without providing any measurable benefit. A single relational database instance on standard hardware can process thousands of simple read queries per second.
A simple in-memory rate-scoped service fulfilling direct requirements
import sqlite3class CustomerDirectory: def __init__(self, db_path=":memory:"): self.conn = sqlite3.connect(db_path) self._init_db() def _init_db(self): with self.conn: self.conn.execute( "CREATE TABLE IF NOT EXISTS customers (id INTEGER PRIMARY KEY, status TEXT)" ) def get_status(self, customer_id: int) -> str: cur = self.conn.cursor() cur.execute("SELECT status FROM customers WHERE id = ?", (customer_id,)) row = cur.fetchone() return row[0] if row else "Unknown"# Verificationsvc = CustomerDirectory()with svc.conn: svc.conn.execute("INSERT INTO customers VALUES (1, 'active')")assert svc.get_status(1) == "active"assert svc.get_status(99) == "Unknown"
Key takeaways
- Quantify traffic, data size, and throughput before sketching architecture.
- Start with the simplest design that satisfies all stated functional and non-functional bounds.
Level 2 · Intermediate: Back-of-the-envelope estimation and baseline validation
To avoid misinterpreting requirements, architects perform back-of-the-envelope calculations. These calculations convert high-level metrics like daily active users into concrete technical constraints: read throughput, write throughput, bandwidth, and storage capacity.
Suppose an application has 1,000,000 daily active users, each generating 10 reads and 1 write per day. A day has 86,400 seconds, approximated as 100,000 seconds for napkin math. The average read load is (1,000,000 * 10) / 100,000 = 100 queries per second, and the average write load is (1,000,000 * 1) / 100,000 = 10 writes per second.
Even under a peak-to-average multiplier of 5, the peak read rate is 500 queries per second and the peak write rate is 50 writes per second. A single modern server with standard relational indexing easily handles 500 queries per second. Sharding or event-driven pipelines at this stage would constitute premature optimization and violate lean architectural discipline.
Calculations module verifying capacity bounds against hardware limits
class CapacityEstimator: def __init__(self, daily_active_users: int, reads_per_user: float, writes_per_user: float): self.dau = daily_active_users self.reads_per_user = reads_per_user self.writes_per_user = writes_per_user self.seconds_per_day = 86400 def compute_qps(self, peak_factor: float = 3.0) -> dict: total_reads = self.dau * self.reads_per_user total_writes = self.dau * self.writes_per_user avg_read_qps = total_reads / self.seconds_per_day avg_write_qps = total_writes / self.seconds_per_day return { "avg_read_qps": round(avg_read_qps, 2), "peak_read_qps": round(avg_read_qps * peak_factor, 2), "avg_write_qps": round(avg_write_qps, 2), "peak_write_qps": round(avg_write_qps * peak_factor, 2) }estimator = CapacityEstimator(daily_active_users=1_000_000, reads_per_user=10, writes_per_user=1)metrics = estimator.compute_qps()assert metrics["peak_read_qps"] < 1000
Key takeaways
- Derive queries per second and disk growth directly from business activity numbers.
- Do not distribute data until numbers exceed the validated limits of vertical scaling.
Level 3 · Advanced: Evolutionary architecture and the cost of premature distribution
Every distributed boundary introduced into a system incurs concrete costs: network serialization latency, partial failure scenarios, distributed consistency coordination, and operational fragmentation. Prematurely splitting services into microservices increases end-to-end latency and risks data anomalies across uncoordinated stores.
Disciplined system design follows evolutionary architecture. Systems are designed with clean internal modular boundaries within a single deployable unit. This preserves low operational overhead while ensuring that if a specific component outgrows the host machine, it can be decoupled without rewriting entire business domains.
The architectural decision to migrate from a centralized architecture to a distributed one must be triggered by empirical thresholds: CPU saturation, I/O saturation, or organizational scaling bottlenecks such as conflicting deployment schedules across large teams.
Key takeaways
- Modular monoliths provide domain isolation without the distributed systems tax.
- Scale horizontally and decouple services only when measured thresholds are breached.
Complexity
- Time: O(1) to O(log N) for index-backed queries
- Space: O(N) where N is the aggregate volume of active entity records
Evaluating architectural sizing focuses on data access path complexities. Right-sized single-node architectures preserve O(1) or O(log N) lookup times without adding network hop overhead O(K) where K is the number of intermediate microservices.
Common mistakes
- Choosing technologies based on popularity rather than workload constraints and concrete calculations.
- Designing for hypothetical future scale of millions of users when current projections dictate thousands.
- Ignoring non-functional requirements such as recovery time objectives and maintenance complexity.
- Introducing asynchronous distributed queues for flows that strictly require synchronous confirmation.
Practice problems
- Internal tooling sizing calculation (easy). Hint: Multiply total staff count by hourly interactions and compare against standard relational query ceilings.
- Session store trade-off analysis (medium). Hint: Evaluate when in-process memory caches become insufficient compared to a managed key-value store.
- Decoupling trigger identification (hard). Hint: Identify exact hardware and team bottlenecks that justify breaking a modular monolith into multiple services.
Summary
Effective system design is grounded in precise mathematical bounds and pragmatic simplicity. By systematically calculating capacity needs, rejecting premature distributed architectures, and designing modular systems that can scale evolutionarily, engineers avoid the pervasive failure modes of missed requirements and crippling overengineering.
Was this helpful?
Comments (0)
Sign in or create an account to join the conversation.
- No comments yet. Be the first!