Security, Reliability, Performance and Cost

Why a working solution can still be a poor enterprise solution: security design, reliability during failure, performance against agreed needs, total cost of ownership, maintainability and the trade-off matrix.

  • Intermediate to advanced
  • About 28 minutes
  • Includes an exercise and a knowledge check

The concept Working is not enough

A solution can work functionally and still be a poor enterprise solution. It may expose sensitive data, fail when a dependency is down, slow down at the peak, or cost more to run than the value it delivers. Evaluate every dimension before recommending a design.

Security Design security in from the start

ConceptQuestion at Apex
AuthenticationWho or what is accessing the system?
AuthorizationWho can view payments, investigate exceptions, approve adjustments?
Least privilegeCan each user and service reach only the data it needs?
EncryptionAre records protected in transit and at rest? Are secrets stored securely?
AuditabilityAre administrative and financial actions recorded?
Data minimizationDo vendors reach only approved interfaces? Are environments separated?

Reliability, performance, cost The other dimensions

DimensionWhat to check
ReliabilityFailure scenarios, dependency availability, retries, duplicates, backlog, backup and recovery, rollback, alerting, manual recovery
PerformanceLatency, throughput, queue depth, consumer lag, query and file times, the peak, resource use, measured against agreed needs
CostCompute, storage, data transfer, messaging, database operations, licenses, monitoring, security, support, engineering effort, operations, disaster recovery
MaintainabilityCan the team understand it, change it safely with tests, deploy it repeatably, and run it without depending on one person?

Put numbers on cost, even rough ones. Here is an illustrative comparison for options A, B and C over three years. Every number below is a practice assumption, not a quote or a cloud price. On a real engagement each line comes from a named source: the customer's rate card, a vendor quote or a measured bill. The method is what matters: one-time effort plus monthly running cost, over the same period for every option.

Line (illustrative)A: fixB: extendC: new platform
Delivery effort12 engineer-weeks30 engineer-weeks130 engineer-weeks
One-time cost at $4,000 an engineer-week$48,000$120,000$520,000
Hosting and database, a month$300$1,800$4,500
Monitoring and logs, a month$300$600$900
Operations and support at $100 an hour, a month10 hours: $1,00030 hours: $3,00060 hours: $6,000
Running cost, a month$1,600$5,400$11,400
Three-year total (one-time + 36 months)$105,600$314,400$930,400

Read the table for its shape, not its digits. C costs about nine times A, mostly in delivery effort, and its monthly bill is seven times higher. That gap is only worth paying if C fixes something A and B cannot: for example, a data model that cannot represent reversals. The table also leaves things out on purpose so you can see them: retiring the old system, a parallel run, and the cost of the analysts' time that each option saves. Add those lines before anyone signs.

The tool The trade-off matrix

A blank ten-spoke radar chart with rings for weak, fair, strong and excellent and no scores filled in. The spokes are business value, correctness, security, reliability, performance, scalability, cost, maintainability, complexity and delivery risk. Beside it, the question behind each dimension, for example: does it solve the original problem, does it keep data and business integrity, can it be built and migrated safely. Rate with evidence; do not declare a winner first.
A blank review chart. Ratings come from evidence in the review, never from preference.

A rating is only as good as its definition. Before anyone scores an option, agree three things with the customer:

Agree firstExample at Apex
What each rating meansWeak: fails the requirement. Fair: meets it with known gaps. Strong: meets it, with evidence. Excellent: meets it with margin, shown in a test
What evidence each rating needsA test result, a measured number, a document or a named expert review. No evidence means no rating above fair
The weights, approved by the customerFor example, business value and delivery risk weighted higher than performance. The weights are proposed by you and approved by the sponsor before scoring starts

Worked example Scoring A, B and C, with the arithmetic

Here is one complete matrix, so you can see every step. The ratings use the definitions above and turn into points: weak 1, fair 2, strong 3, excellent 4. The sponsor approved the weights before scoring, and they add up to 100, so the best possible total is 400. In this example all three options passed both gates at a design review, so all three may be scored. The ratings are illustrative.

Dimension (weight)A: fixB: extendC: new platform
Gate: securityPassPassPass
Gate: financial correctnessPassPassPass
Business value (25)Strong: 3 × 25 = 75Strong: 3 × 25 = 75Strong: 3 × 25 = 75
Delivery risk (20)Strong: 3 × 20 = 60Fair: 2 × 20 = 40Weak: 1 × 20 = 20
Reliability (15)Fair: 2 × 15 = 30Strong: 3 × 15 = 45Fair: 2 × 15 = 30
Maintainability (15)Fair: 2 × 15 = 30Strong: 3 × 15 = 45Fair: 2 × 15 = 30
Cost (10)Strong: 3 × 10 = 30Fair: 2 × 10 = 20Weak: 1 × 10 = 10
Complexity (10)Strong: 3 × 10 = 30Fair: 2 × 10 = 20Weak: 1 × 10 = 10
Performance (5)Fair: 2 × 5 = 10Fair: 2 × 5 = 10Fair: 2 × 5 = 10
Total (out of 400)265255185
RatingThe evidence behind it
A, delivery risk: strongThe confirmed defects sit in the integration path; on a copy of production data, a one-week prototype of the duplicate check stopped repeated events from posting twice
A, reliability: fairKnown failure modes stay until each fix ships; the observability gaps from Module 04 are still open
B, reliability and maintainability: strongA failure test showed the queue holds events while loan servicing is down and delivers them once it is back; the new services have their own tests and an owner
C, delivery risk: weakHistory migration and a parallel run are both required, and neither has been estimated by the team that would do them
Performance: fair for all threeNobody has measured any option at the 20-a-second peak yet. No evidence means no rating above fair
CostThe three-year totals in the cost table above

Now read the result honestly. A leads B by 10 points out of 400. That is close enough that one rating can flip it: if A's reliability stays fair while B's delivery risk improves to strong after a spike, B gains 20 points and leads by 10. So the matrix does not say choose A. It says A and B are close, C is clearly behind, and the decision between A and B depends on two things to measure next: whether A's reliability gaps can be closed in the current code, and how risky B's integration work really is. That is a better message for the sponsor than a single winner.

Practice Rate two options

Practical exercise

Option A versus option C

Rate Apex options A (fix) and C (new platform) on five dimensions, giving one piece of evidence each.

  1. Correctness, security, reliability, delivery risk and complexity.
  2. Write the evidence, not just a rating.
Show sample ratings
  • Gates first: both A and C can pass the security and financial-correctness gates if idempotency and access controls are designed in. Neither may be scored until that is shown.
  • Correctness: both can be strong if idempotency is designed in; C must also migrate history without errors.
  • Security: A inherits existing access controls, gaps included; C can design least privilege from scratch but must be reviewed again.
  • Reliability: A keeps known failure modes until fixed; C introduces new, untested ones.
  • Delivery risk: A low; C high, because of migration and parallel validation.
  • Complexity: A low; C high at first.

3 questions

Check your understanding

1. Why evaluate total cost of ownership rather than infrastructure cost alone?
2. What does least privilege mean?
3. A system retries well but sometimes posts payments twice. Is it reliable?
Answer every question to submit.

What you can do now

  • Design security concepts into an architecture.
  • Evaluate reliability, performance, cost and maintainability.
  • Use a trade-off matrix with evidence.