Article · Solution Architect – role and craft · Microservices
Estimation, cost and TCO: what it costs and how many servers you really need
A Solution Architect's number-crunching toolkit: high-level estimates (T-shirt sizing and PERT), stages and MVP, step-by-step capacity planning from traffic to instances and database, a 3-year build-vs-buy TCO, and technical debt translated into money. With a calculator in Python and TypeScript.
A steering committee, fifteen minutes on the item "Bazario – OrderFlow, budget". The sponsor looks at Ola and asks the two questions a Solution Architect hears more often than any other: "How much will it cost?" and "When will it be ready?". He wants one number. Ola answers with a range, shows where it comes from, and says what would have to happen to narrow it. This article is about how to arrive at such an answer – and how to defend it.
- 86,400
- seconds in a day – 1 million requests a day is only about 11.6 RPS on average – but nobody designs for the average
- 0.25×–4×
- estimate spread at the concept stage – according to Boehm and McConnell's "cone of uncertainty"
- 33%
- of developers' time – goes to technical debt and bad code (Stripe, *The Developer Coefficient*, 2018)
Why a range and not a number
At the start of a project you don't yet know what you don't know. Barry Boehm showed, and Steve McConnell popularised in Software Estimation (2006) as the cone of uncertainty, that the spread of an estimate only shrinks as decisions get made. At the concept stage the real cost can be anywhere from a quarter to four times the first estimate.
| Upper bound | Lower bound | |
|---|---|---|
| Initial concept | 4 × initial estimate | 0.25 × initial estimate |
| Approved product definition | 2 × initial estimate | 0.5 × initial estimate |
| Requirements complete | 1.5 × initial estimate | 0.67 × initial estimate |
| UI design complete | 1.25 × initial estimate | 0.8 × initial estimate |
| Detailed design complete | 1.1 × initial estimate | 0.9 × initial estimate |
| Software complete | 1 × initial estimate | 1 × initial estimate |
Practical takeaways for an architect:
- Give the estimate together with the stage it was made at and a list of assumptions. When an assumption breaks, the estimate is void – and everyone knows it.
- Plan a re-estimate after every milestone that narrows the cone: after requirements workshops, after the HLD, after a PoC.
- Turn risky assumptions into knowledge as early as possible: a spike, a PoC, a conversation with the team you depend on.
High-level estimates: T-shirts and PERT
T-shirt sizing – scale instead of a number
When all you have is a list of epics, counting hours makes no sense. The team assigns sizes, and the architect makes sure an XL never enters the plan without being broken down:
| Size | Person-days | Bazario example |
|---|---|---|
| XS | up to 3 | a new field on the address form with validation |
| S | 3–10 | integration with a parcel locker network through an existing API |
| M | 10–25 | a support panel for returns and complaints |
| L | 25–60 | a promotion engine with rule versioning |
| XL | over 60 | "migrate the product catalogue from the old system" – must be broken down |
PERT – three numbers instead of one
For packages that go into the plan, Ola asks for three values: optimistic (O), most likely (M) and pessimistic (P). The PERT method (developed in 1958 for the US Navy's Polaris missile programme) turns them into an expected value and a deviation:
E = (O + 4M + P) / 6 σ = (P − O) / 6
| Package | O | M | P | E | σ |
|---|---|---|---|---|---|
| Payment operator integration | 5 | 8 | 17 | 9.0 | 2.0 |
| Promotion and discount rules | 8 | 12 | 22 | 13.0 | 2.3 |
| Support panel (returns) | 6 | 10 | 20 | 11.0 | 2.3 |
| Migrate catalogue and price lists | 3 | 6 | 15 | 7.0 | 2.0 |
| Load tests and hardening | 4 | 5 | 9 | 5.5 | 0.8 |
| Total | 41 | 45.5 | 4.4 |
Expected values add up, deviations don't: the total σ is the square root of the sum of squares (√19.6 ≈ 4.4). The table teaches three lessons:
- The sum of the "most likely" values (41 person-days) understates the result. The distributions are right-skewed – things go worse more often than better – so E comes out higher (45.5).
- The plan gets a percentile, not the mean. E + 1.65σ ≈ 53 person-days gives about a 95% chance of fitting (assuming a roughly normal distribution).
- The biggest risk is visible at once: packages with a large σ are candidates for a spike before the start.
Ola keeps the estimate next to the HLD as a file in the repository – with the assumptions, exclusions and risks that would void it:
# High-level estimate – lives next to the HLD and is versioned like code.
initiative: Bazario OrderFlow MVP – new order system, card and BLIK payments via one operator
estimated_by: [ola.nowak, orderflow-tech-lead, warehouse-tech-lead]
date: 2026-11-27
stage: requirements-complete # where we are on the cone of uncertainty
unit: person-days
assumptions: # if one of them breaks, the estimate is void
- Payment operator sandbox available from week 2
- The WMS publishes stock-levels events (AsyncAPI) from 15 January
- Polish market only, PLN only, consumer customers only
exclusions:
- Mobile app changes (separate team, separate estimate)
- Migration of orders older than 2 years
work_packages: # PERT: E = (O + 4M + P) / 6, sigma = (P - O) / 6
- { name: Payment operator integration, size: S, o: 5, m: 8, p: 17 }
- { name: Promotion and discount rules, size: M, o: 8, m: 12, p: 22 }
- { name: Support panel (returns, refunds), size: M, o: 6, m: 10, p: 20 }
- { name: Migrate catalogue and price lists, size: S, o: 3, m: 6, p: 15 }
- { name: Load tests and hardening, size: S, o: 4, m: 5, p: 9 }
result:
sum_of_most_likely: 41 # what a single-point estimate would say
pert_expected: 45.5
pert_sigma: 4.4 # square root of the sum of squared sigmas
p95: 53 # E + 1.65 sigma – the number that goes into the plan
risks:
- { risk: Payment operator API slower than documented, impact: +5 pd, owner: orderflow-tech-lead }
- { risk: Legal changes the Omnibus price-history display, impact: +3 pd, owner: orderflow-po }The rest of this article is for members
Create a free account or sign in to read it all. Still ahead:
- Stages and MVP: how to start before everything is known
- Capacity planning step by step
- What goes into TCO
- 3-year TCO: build or buy?
- Technical debt as a cost
- Check yourself
- Related topics