Let the Problem Choose the Technology

How an FDE matches a need to an approach and justifies it: applications, APIs, queues, streams, workflow engines, exact rules, ML, search, RAG, agents and language models, and when a person must decide instead.

  • Beginner
  • About 24 minutes
  • Includes an exercise and a knowledge check

The trap Tools are not answers

Every year brings a new favorite tool, and every year someone tries to use it for everything. An FDE starts from the need and works toward the tool, never the other way around. The question is never where can we use microservices? or where can we add AI?. It is what does this problem actually require?

Eight cards, each with a need, a usual approach and a deciding question. A straightforward business workflow: modular application. A request that needs an answer now: REST API. Background work: queue. A continuous flood of events: event streaming. A long process with people in it: workflow engine. An exact financial calculation: plain code with tested rules. A prediction from past data: statistics or an ML model. Flexible language such as a summary: a large language model, with a question about how its mistakes are caught.
Each need has a usual starting point and one question that decides whether it really fits.

You will learn each of these approaches properly in later modules. For now, the important habit is the deciding question on each card. It is what stops you from choosing a tool because it is popular.

Justify the choice Eight questions that decide

The cards tell you where to start. To defend a choice, you also need the criteria. Answer these eight for each task, and the right approach usually becomes obvious. Here they are for matching payments at the lender:

CriterionThe questionFor matching the lender's payments
AccuracyHow correct must the result be?Exactly right: it is money
LatencyHow quickly is an answer needed?Before the analysts start at 8 a.m.
VolumeHow much work must be processed?About 40,000 a day, 160,000 on the peak day
Determinism and repeatabilityMust the same input always give the same result?Yes: an auditor must be able to repeat it
ExplainabilityCan we explain why a decision happened?Yes: every match must show which fields agreed
Failure impactWhat happens when the system is wrong?A wrong balance and a wrong late notice to a borrower
CostWhat does it cost to run and to change?Low: a nightly job on the existing database
Operational burdenCan the customer run, monitor and support it?Their IT team already runs nightly database jobs

Every answer points the same way: exact, repeatable rules in ordinary code. A language model fails on determinism and explainability before cost even comes up. Determinism is used here on purpose: consistency means something different in databases. Write the table down; it is the justification a reviewer will ask for.

Alternatives, not slogans The simpler option often wins

Often suggestedOften betterWhen the simpler option wins
MicroservicesOne well-organized applicationA small team, one cohesive business area
Real-time streamingA nightly or hourly batchNobody acts on the result until morning
An event-driven workflowOne database transactionA small change that must succeed or fail as a whole
RAG with a language modelPlain searchPeople need to find a document, not get a written answer
A language modelExact rulesThe decision must be identical every time and audited
Full automationA person approvesThe decision is high-impact or legally accountable

Search, RAG and agents are often confused, because they all involve finding information. They answer three different needs:

The needUsual approachWhat it returnsLender example
Find a documentSearchA list of documents to readFind the bank file specification from March
Get an answer drawn from several documentsRAG: retrieval plus a language modelA written answer that cites the passages it usedWhat does our policy say about waiving a late fee after a hospital stay?
Carry out a task in several steps across systemsA workflow, or an agent with toolsActions taken, such as records updated or tickets openedOpen an exception case, attach the three records and assign it to an analyst

Each step up adds power and risk. RAG can misread a passage, so its answers must show their sources. An agent can take a wrong action, so it needs narrow permissions, limits and a log. If a fixed workflow can do the job, prefer it over an agent: it does the same steps every time.

Using AI well Rules, ML, AI or a person?

Teaching when not to use AI is as important as teaching when to use it. In a single project, different tasks often need different kinds of decision-maker. Here are five tasks from the lender's reconciliation work. Four questions pick the approach, and a separate gate decides whether a person must approve the result. The gate is not a fifth option: it applies to every answer, because a model can flag a payment while a person still owns what happens next.

Choosing an approach for tasks from the fictional lender, in two parts. First, four questions asked in order, stopping at the first yes. Question 1: is the answer defined exactly by the data or a contract? If yes, use deterministic rules, for example matching exact loan and payment IDs; at the gate, automatic and logged. Question 2: is there a known business rule for the exception? If yes, use explicit business rules, for example allowing a settlement up to one business day late; automatic and logged. Question 3: must a pattern be learned from past data? If yes, use statistics or ML, for example flagging unusual payment patterns; the model flags and a person decides the action. Question 4: is flexible language needed, from trusted records? If yes, use a language model, for example summarizing evidence for an analyst with the records attached; a person reads it. If no question gets a yes, go back to discovery. Second, the accountability gate applies to every answer: if the result leads to a high-impact or legally accountable action, an authorized person decides, and the system records who, why, which policy, when and what changed. Example: approving a write-off. Warning: never let a language model be the source of truth for balances, calculations, permissions or unreviewed high-impact decisions.
Ask the four questions in order and stop at the first yes. Then pass every answer through the accountability gate.
TaskBest fitWhy
Match exact loan and payment identifiersDeterministic rulesSame answer every time, easy to audit
Allow for a known settlement delayExplicit business rulesThe policy is written down: up to one business day late still matches
Spot unusual payment patternsStatistics or MLOnly with labeled history and a simple baseline to beat
Summarize the evidence for an exceptionA language modelThe records are attached, and a person reads the summary
Approve a write-offAn authorized personHigh-impact and accountable; the system records the decision

A person in the loop is about accountability, not only a click. When someone approves a write-off or waives a fee, they decide within a policy they are authorized to apply, and the system records the decision:

  • Who approved it, checked against the people allowed to approve.
  • Why: the reason they gave, in their own words.
  • Which policy applied, with its version.
  • When the decision was made.
  • What changed in the financial record: the amount, the account and the entry before and after.

Before adding any AI feature, an FDE writes down the answers to a short checklist. If you cannot answer these, the feature is not ready.

  1. The task: what will AI do, and why can't ordinary code or rules do it as well?
  2. The data: which sources may it use, and who is allowed to see them?
  3. The test: what evaluation data and success measure prove it works?
  4. Low confidence: what happens when it is unsure, and who takes over?
  5. Oversight: what privacy, security and human review apply?
  6. Failure: what is the fallback when it is wrong or unavailable?
  7. Running costs: how are cost, speed and quality watched over time?

Practice Choose for each task

Practical exercise

Four more lender tasks

For each task, choose rules, statistics or ML, a language model, or a person, and write one sentence explaining why.

  1. Calculate the late fee on a payment that arrived after the grace period.
  2. Draft a friendly email to a borrower explaining why their payment was delayed.
  3. Predict which borrowers are likely to miss next month's payment, so the team can call them early.
  4. Decide to waive a late fee for a borrower who was in the hospital.
  5. A failure case: the bank sends the same payment file twice by mistake. What should the system do, and how would you prove that no payment was posted twice?
Show sample answers
  • Late fee: exact rules. It is a financial calculation defined by the loan contract and must be the same every time.
  • Delay email: a language model can draft it, but a person reviews it, and the facts (dates, amounts) come from the records, not from the model.
  • Likely to miss a payment: statistics or ML, if there is good payment history and a simple baseline to beat. Check it for fairness before use.
  • Waive a fee: a person decides, within a written policy they are authorized to apply. The system records who approved it, why, which policy, when and what changed on the account.
  • The duplicate file: exact rules, at two levels. File level: record every file received with its file ID and a checksum of its contents, so the same file arriving again is spotted at once and an alert tells the team. Transaction level: the same payment can also arrive in two different files, so give every payment a key scoped to its source, such as bank ID + bank transaction reference, and let the database refuse a second posting with the same key.
  • Check the key with the customer. A reference on its own may be reused by another provider or after a few years. Ask the bank whether its reference is unique, for how long, and within what. If it is not guaranteed, agree a stronger business key with the customer and test that it is unique in a year of history.
  • The proof: count postings per key for that day, and every count must be 1. The total posted must equal the total of one copy of the file. Then replay the file in a test environment and show that it adds zero rows.

5 questions

Check your understanding

1. Where should an FDE start when choosing technology?
2. The lender's analysts only read the reconciliation report when they start at 8 a.m. What is a sensible default?
3. Which task should never rely on a language model as the source of truth?
4. Analysts ask: What does our policy say about waiving fees after a hospital stay? The answer is spread across three policy documents. What fits best?
5. The bank sends the same file twice. Which design prevents double posting?
Answer every question to submit.

What you can do now

  • Match a need to a usual approach and its deciding question.
  • Justify a choice with eight criteria, from accuracy to operational burden.
  • Defend a simpler option when it fits.
  • Tell search, RAG and agents apart.
  • Choose between deterministic rules, business rules, ML, a language model and a person for a task.
  • Say what a human approval must record.
  • Use the seven-point checklist before adding an AI feature.