hebel. today · 22 November 202668 / 79
Technology · Software Architecture Patterns
Scaling systems by measuring bottlenecks before selecting components
Arslan Ahmad argues that system design failures occur when teams select components like Kafka or Redis before identifying the specific resource limit constraining the application. Instead, engineers should apply the USE method—utilizing metrics for…
From 2 newsletters · 1 min read · one thing to try
Arslan Ahmad argues that system design failures occur when teams select components like Kafka or Redis before identifying the specific resource limit constraining the application (Arslan Ahmad from System Design Nuggets). Instead, engineers should apply the USE method—utilizing metrics for utilization, saturation, and errors—to pinpoint whether CPU, memory, or disk I/O limits throughput (Arslan Ahmad from System Design Nuggets). Once the bottleneck is measured, the escalation ladder dictates fixing the query execution plan first, followed by adding cache-aside layers with TTL, before escalating to structural changes like sharding or service decomposition.
This evidence-based approach forces engineers to quantify metrics like peak requests per second and p99 latency before choosing a component. For instance, if read latency is the primary bottleneck, teams check execution plans for missing indexes or N+1 patterns before attempting to scale the database vertically. Each decision is recorded as an architecture decision record, which includes the symptom, the measurement, and the revisit trigger for future evaluation.
Stripe correlates payment failures across services by propagating a single trace ID via headers, ensuring logs join a unified waterfall rather than remaining as isolated strings (Hands On System Design). This practice of treating logs as structured contracts allows engineers to collapse noisy error fingerprints into single groups using normalization, effectively turning dynamic values into hashes.
Try today · 20 min
Create an architecture decision record for your most significant current performance bottleneck.
List the symptom, the metric you measured, the options you considered, and the specific threshold that will trigger a re-evaluation.