Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
Important Skills to Learn  ›  Lesson

Estimate, Evaluate and Balance

Estimate and Evaluate 15 minArchitects estimate with rough numbers, evaluate options against weighted quality attributes, and accept that every gain in one attribute costs something in another.

Estimate, Evaluate and Balance

DabbaGo's order confirmations slow down every lunch peak. The team has three ideas: a bigger database server, a queue that accepts orders instantly and confirms them later, or splitting orders into its own service. Each engineer defends a favourite. The architect's job is not to have the best opinion. It is to put numbers on the problem, compare the options fairly, and say clearly what each one gives up.

The rule

Every gain costs something; estimate, weigh, then choose the cost you can afford.

The rule holds three skills.

Estimate with rough numbers. Architects need the right order of magnitude, not a precise figure. DabbaGo gets about 3,000 orders in its busiest ten minutes. That is 3,000 ÷ 600 seconds, about 5 orders a second. A single well-tuned database handles far more than that, so if orders are slow the cause is probably slow queries, not raw volume. A rough estimate often changes the whole conversation.

Evaluate against weighted attributes. Score each option on the quality attributes that matter, weighted by how much they matter to this business right now:

Attribute (weight) Bigger server Queue Separate service
Speed at peak (3) 2 3 2
Simplicity (3) 3 2 1
Cost (2) 2 2 1
Weighted total 19 19 11

Scores run from 1 (poor) to 3 (good). The table does not decide for you; it makes the argument visible. Here two options tie, which tells you the weights deserve a closer look.

Balance the trade-off. Quality attributes pull against each other. The queue makes placing an order faster but means the customer waits for a separate confirmation, and it adds a component that can fail. More security often means more friction for users. Lower cost often means less spare capacity. There is no option without a cost, only options whose costs you can accept.

The shortcut

Run Size, Score, Sacrifice: size the problem with a rough number, score the options against weighted attributes, then name the sacrifice of the winner in one sentence.

Fixing slow order confirmationsStep 1 of 4
  1. Size

    About 5 orders a second at peak. That is modest, so volume alone is not the problem. Profiling shows two slow report queries hitting the same database at noon.

The trap is presenting an option as having no downside. When someone says "there is no trade-off", the cost has simply not been found yet.

Drills

Answer fast — trust the rule.

quick drill

DabbaGo expects 6,000 orders in its busiest ten minutes after the Mumbai launch. Roughly how many orders a second is that?

quick drill

What is a weighted scoring table for?

quick drill

Adding a queue lets customers place orders faster. What is a real cost it brings?

quick drill

An engineer says their proposal "has no trade-offs at all". What does the rule suggest?

Remember

  • Every gain costs something: estimate, weigh, then choose the cost you can afford.
  • Shortcut: Size, Score, Sacrifice.
  • Trap: believing any option comes with no downside.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainWeigh two options

DabbaGo's menu search is slow. Option A adds a cache in front of the database; option B moves search to a dedicated search engine. Estimate or reason about the load, compare the options on at least two weighted quality attributes, and name the trade-off you are accepting.