Polski

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.

By · · 17 min read

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.

The cone of uncertainty: how wrong an estimate can be at each stage – Model multipliers after Boehm and McConnell (Software Estimation, 2006), not a measurement of a specific project. The cone only narrows when you make decisions – the passage of time alone doesn't narrow it.
Upper boundLower bound
Initial concept4 × initial estimate0.25 × initial estimate
Approved product definition2 × initial estimate0.5 × initial estimate
Requirements complete1.5 × initial estimate0.67 × initial estimate
UI design complete1.25 × initial estimate0.8 × initial estimate
Detailed design complete1.1 × initial estimate0.9 × initial estimate
Software complete1 × initial estimate1 × 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:

SizePerson-daysBazario example
XSup to 3a new field on the address form with validation
S3–10integration with a parcel locker network through an existing API
M10–25a support panel for returns and complaints
L25–60a promotion engine with rule versioning
XLover 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

PackageOMPEσ
Payment operator integration58179.02.0
Promotion and discount rules8122213.02.3
Support panel (returns)6102011.02.3
Migrate catalogue and price lists36157.02.0
Load tests and hardening4595.50.8
Total4145.54.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:

  1. 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).
  2. 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).
  3. 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:

docs/estimate-orderflow-mvp.yaml
# 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

Create a free account · Sign in