SteelReed

Search

Search posts, questions…

7. System Design

Pragmatic software architecture: architectural drivers, the architect's role and context-driven decisions

The four groups of architectural drivers (functional requirements, business constraints, technical constraints, quality attributes), why they pull on each other, how to stay pragmatic without closing doors, the modern architect's role, and a clinic SaaS case worked end to end.

18 Nov 20267 min readSenior

–

1. The problem

A team of 4, a 2-month deadline, under 10 requests/second. Someone proposes 6 microservices on Kubernetes "so we can scale later". Two months on there is still no MVP.

2. Key idea

An architectural driver is what forces the architecture into this shape and not another. There are four groups:

Group What it is Example
Functional requirement What the system must do "Book an appointment"
Business constraint Time, people, money, law "Done in 2 weeks", "3 devs", GDPR
Technical constraint Mandated technology "Runs on the internal platform", "written in Java"
Quality attribute How well "Availability ≥ 99.5%", "report ≤ 7 seconds at peak"

Quality attributes decide the shape: the same 10 features can run on one server or need three regions, depending on the numbers. So ask for numbers in the first meeting.

2.1 Why can't we have it all?

Drivers pull on each other. Plan: 10 features, 3 months, 99% availability.

Change Forced consequence
MVP one month earlier Cut features
99% → 99.9% More infrastructure; or move the deadline, or cut features
One more mandatory feature Move the deadline
Computing allowed downtime

Allowed downtime = (1 − availability) × time.

Availability Downtime/month Usually needs
99% ≈ 7.2 hours One instance
99.9% ≈ 43 minutes ≥ 2 instances, DB failover, zero-downtime deploys
99.99% ≈ 4.3 minutes Failover in seconds, 24/7 on-call

2.2 What does pragmatic mean?

Solve today's problem (or the next few weeks') from observed data, not "we might need it next year". But keep options open: clear module boundaries, each module owning its data.

Approach Use when Don't use when
One deployment unit, strict modules Small team, moderate load, near deadline Several teams need independent deploys
Split a service One module needs its own scaling or deploys, with data "Other companies use it"

The architect is a function inside the team: understand the business, state the cost before committing, dare to say "stop".

3. Worked example: a clinic SaaS

Replace spreadsheets for 3–5 private clinics in Europe.

Driver Value Reading
Deadline 2 months No distributed platform
Law Medical data in the EU (GDPR) Encryption, audit log, EU region
Availability 99.5% (≈ 3.6 hours/month) One zone, good backups
Scale 100 staff × 200 actions/day ≈ 0.7 requests/second, peak ~7

Conclusion: one deployment unit, 5 business modules, one managed PostgreSQL, a schema per module. Record a trigger threshold: "over 300 clinics or a second team, and we revisit".

4. Working with AI

Delegate to AI: drafting the driver table and ADR, computing load and downtime.

Check yourself:

  • Every quality attribute has a number, not "fast" or "stable".
  • Every component (cache, broker, separate service) points to the driver that needs it.
  • The ADR lists rejected options and why.
  • It states assumed limits and a revisit threshold.

5. Exercises

Exercise 1: A driver changes mid-project

One month in, a chain of 80 clinics wants to sign and demands 99.9%; the deadline stays. AI proposes "split into 5 microservices to handle the load". Assess it and make a proposal to the business.

Solution to Exercise 1
  • New load: ~85 clinics × 20 staff × 200 actions ≈ 340,000 requests/day, peak ~120 RPS. Still fits a monolith; load is not a reason to split.
  • 99.9% (43 minutes/month) is what changes the architecture: ≥ 2 stateless instances in 2 zones, PostgreSQL with an automatic-failover standby, rolling deploys, expand/contract migrations, alerts and on-call.
  • To the business: keep the deadline and ship 3 modules (scheduling, treatment, billing), moving prescriptions and national records sync to phase 2; or all 5 modules and one more month. Include the added infrastructure cost. Record it as an ADR.

Exercise 2: Find the unneeded component

For a project you're on: write the driver table with numbers, then point to one component no driver asks for.

Hint for Exercise 2

Common unneeded parts: a Redis cache when the table has 20,000 rows and p95 is already 40 ms; Kafka just to send email when an outbox table and a scheduled job would do; Kubernetes for one service with one instance. The test: "if we remove it, which driver is violated?" If you can't name one, remove it.

Summary

  • Four driver groups: functional, business constraint, technical constraint, quality attribute.
  • Quality attributes with numbers decide the architecture's shape.
  • Each extra nine: allowed downtime drops tenfold, infrastructure grows.
  • Changing one driver forces another.
  • Simple first, strict module boundaries, a recorded threshold for splitting.

Further reading: Trade-off analysis like a senior.


Reference: Master Software Architecture: A Pragmatic Guide by Maciej "MJ" Jedrzejewski (2024); the estimates, the availability table, the exercises and their solutions are my own.

Practice interview questions on this topic

All Behavioral questions →All OOP & Design questions →All System Design questions →

Loading comments…
Next on the roadmapChoosing a database in system design: SQL, NoSQL, NewSQL, columnar and time-series