What you will be able to do
- Produce an eleven-dimension workload profile for a real system before recommending any architecture.
- Explain why read/write ratio and transaction size decide more than data volume does.
- Turn 'it should be fast' into a latency objective with a percentile and a tier.
- Use the profile to eliminate architectures early - the questions that rule a platform out cheaply.
Every architecture question is unanswerable until the workload is described in numbers. “High traffic” is not a requirement; “5,000 reads/second against 200 writes/second, p99 under 30 ms, 12 TB growing 400 GB/month” is. This lesson is the profiling instrument - eleven dimensions, each of which eliminates architectures cheaply if it is answered honestly.
The real-world analogy is a restaurant kitchen designed before the restaurant opens. “We expect to be busy” is not a brief a designer can build to; the kitchen needs covers per night, the lunch-versus-dinner split, how big a typical order is, the Saturday peak against the Tuesday average, and how much cold storage the menu requires - each one a dimension below in disguise. The most common beginner mistake is the same in both worlds: accepting the adjective as the profile, recording “high traffic, needs to be fast” and moving on to product selection. The profile is measured from the waits and the DMVs, not asked for - and its second common form is profiling the average while never measuring the peak, when the peak-versus-average ratio is the dimension that sets headroom.
The eleven dimensions
| Dimension | What to measure | Why it decides the architecture |
|---|---|---|
| Read/write ratio | Reads:writes per second at peak | Read-heavy can scale-out replicas; write-heavy cannot - it hits the single-writer wall |
| Transaction size | Rows and log bytes per commit | Large transactions hold locks and grow the log; small ones pay per-commit flush cost |
| Data volume and growth | Current size, growth rate, hot/cold split | Growth sets the capacity clock; the hot/cold split decides what even needs fast storage |
| Distribution and skew | Is 10 percent of the data 90 percent of the traffic? | Skew decides where indexes and hot-page contention will bite; uniform and skewed need different designs |
| Query complexity | Point lookups vs joins vs aggregations vs scans | Complexity decides which engine (OLTP vs analytical) is the honest fit |
| Concurrency and peak | Concurrent sessions, active requests, peak shape | Peak-vs-average ratio decides headroom; concurrency decides pool and scheduler pressure |
| Latency objective | A percentile and a tier - not “fast” | p99 < 30 ms on point reads is a different system than p95 < 5 s on reports |
| Consistency and durability | Read-your-writes? Tolerable staleness? Loss window? | Whether a replica can serve reads, and whether delayed durability is ever honest |
| Retention and archival | How long data lives, and where cold data goes | Partitioning, archive tiers, and whether historical data even stays in the engine |
| Availability and recovery | RTO and RPO - how long down, how much data lost | Multi-AZ versus async replicas versus log-shipping - each buys a different guarantee |
| Cost and operational constraints | Budget, headcount, skills, licensing | A managed platform’s convenience premium versus an owned platform’s labour |
Why two of these decide more than the rest
- Read/write ratio is the single most architectural number. A 95/5 read-heavy system scales reads by adding replicas - writes never scale out on a single-writer engine. A 50/50 system cannot hide behind replicas; it is bounded by one writer’s throughput.
- Transaction size decides the commit pattern: many small commits are log-flush bound; few huge ones are lock-hold and log-growth bound. There is no free middle - only the batching choice that fits the ratio.
The profile in practice
From a running system to a profile
Instrument
Wait delta, dm_exec_requests, file stats, Query Store
A week of production evidence beats a requirements meeting
Quantify
Reads:writes, tx size, volume, growth, skew, peak
Each dimension gets a number, not an adjective
Set objectives
p95/p99 per tier, RTO, RPO, durability window
Targets in percentiles and seconds - not "fast" and "reliable"
Eliminate
Architectures the profile rules out, cheaply
A 99-percent-write workload eliminates read-scale-out in one line
What the profile kills early
The profile’s real value is subtraction - each dimension lets you remove an architecture before it costs a prototype:
- High-write, low-read + tight commit latency → read replicas and analytics offload are both wrong tools; the problem is the writer and the log.
- Large, cold, append-only history + heavy analytical queries → keeping the history in the OLTP engine is paying transaction-engine prices for a warehouse workload.
- Extreme durability + sub-millisecond write target → the two fight; the profile forces the trade to be stated, not discovered.
- Uniform distribution, moderate size, no analytics → the simplest platform is probably right, and the profile is what lets you say that with confidence instead of overselling.
The artefact
The deliverable of this lesson is a one-page profile: the eleven numbers, the derived objectives, and the architectures the profile already ruled out. Every subsequent lesson - the scaling ladder, the platform comparison, the offload decision - is read against that page. An architecture without it is the subject of the capstone’s defence exercise, which exists precisely to expose the ones that skipped this step.
Guided practice
A paper exercise: build the one-page profile for a described system before recommending anything. The scenario: a ticket-booking platform is quiet most of the day but spikes hard when a popular show goes on sale - point lookups dominate, most transactions touch a handful of rows, and the brief from management is “a system that stays fast on on-sale mornings”. Work each step and check yourself before moving on.
- Choose the instrument. Decide where the profile’s numbers come from - the requirements
meeting, or the running system.
Check: the numbers come from the measured system - wait deltas,
dm_exec_requests, file stats and Query Store - because a week of production evidence beats a requirements meeting. If you planned to interview the stakeholder for the numbers, revisit “the profile in practice”: the profile is measured, not asked for. - Fill the two dimensions that decide the most. Write the read/write ratio and the transaction size for this workload, and say what each rules in or out. Check: a read-heavy ratio means replicas can absorb reads while the single writer stays the write ceiling, and many small commits are log-flush bound while few large ones are lock-hold and log-growth bound. If you wrote only “busy”, revisit “why two of these decide more” - those two numbers are the ones that are actually architectural.
- Turn “stays fast” into an objective. Rewrite the requirement as the latency row. Check: a percentile and a tier per workload class - for example a tight p99 on the point reads against a looser bound on reports - not the word “fast”. If your answer has no percentile, revisit the latency-objective row of the table.
- Name what the profile eliminates. Write at least one architecture this profile rules out cheaply, with the dimension that kills it. Check: any honest elimination with its owning dimension is correct - the spike shape argues for headroom and bounded concurrency rather than a bigger average machine, and the point-lookup mix argues against an analytical offload. If every candidate survived, revisit “what the profile kills early” - the profile’s real value is subtraction.
- Write the artefact. Assemble the one page the remaining lessons will be read against. Check: three parts are present - the eleven numbers, the derived objectives, and the architectures already ruled out. If the ruled-out list is missing, you have a description, not a decision tool - revisit “the artefact”.
Check your understanding
Ordered easy to hard. Answer each before reading the answer; a wrong answer names where to look.
- What is a workload profile? The eleven dimensions - from read/write ratio through cost and operational constraints - each answered with a measured number, plus the objectives derived from them and the architectures they already rule out. If you answered “a description of the system”, revisit the artefact - a description only becomes a profile when it is quantified.
- Why do read/write ratio and transaction size decide more than data volume does? Because they fix the shape of the ceiling: a read-heavy system scales out on replicas while a write-heavy one hits the single-writer wall whatever its size, and transaction size fixes the commit pattern - many small commits are log-flush bound, few large ones are lock-hold and log-growth bound. Volume sets the capacity clock; these two set the architecture. If you ranked volume first, revisit “why two of these decide more”.
- A stakeholder says the new system “should be fast”. What goes in the profile? A percentile and a tier per workload class - for example p99 under 30 ms on point reads versus p95 under 5 s on reports - because “fast” specifies no system and the two tiers can require different ones. If you wrote a single average latency, revisit the latency-objective row: the tail is where the design actually lives.
- The profile shows a 99-percent-write workload with tight commit latency. What does it rule out? Read replicas and analytics offload in one line - the binding problem is the writer and the log, and neither tool touches it. This is the profile earning its keep: the elimination is cheap and early. If you proposed replicas anyway, revisit “what the profile kills early”.
- Why is “uniform distribution, moderate size, no analytics” still a profile worth producing? Because the profile’s value is subtraction in both directions - it rules the expensive options out just as surely as it rules wrong ones in, and it lets you say “the simplest platform is right” with evidence instead of restraint. If you thought a boring profile means the exercise failed, revisit the last bullet of “what the profile kills early” - not overselling is a result.
Where SQL Server sits
How this component relates to the rest of the stack. Items without a link are not covered here yet.
Deployed with
Commonly run alongside
- Windows Failover Clustering