Convert the Architecture into an Engineering Plan

Why implementation does not start with coding: the Apex engineering handoff, capabilities turned into tasks with evidence, acceptance criteria, dependencies and the first vertical slice.

  • Advanced
  • About 15 minutes
  • Includes an exercise and a knowledge check

Before you start What you will learn in this module

In Module 06 you designed the Apex Payment Reconciliation Platform. An architecture document does not solve the customer’s problem: working software does. This module is deliberately practical. You will not collect disconnected examples; you will build one evolving application, slice by slice, and keep checking it against the customer’s original requirements. Every important decision stays traceable: business requirement, architecture decision, engineering task, implementation, test, evidence. By the end you will be able to:

  • Turn architecture artifacts into an engineering backlog with acceptance criteria.
  • Structure a maintainable Spring Boot application by business capability.
  • Model money and identity correctly, and evolve the schema with migrations.
  • Implement a payment API from its contract, with provider adapters.
  • Make ingestion and event processing idempotent, with a transactional outbox.
  • Ingest settlement files as tracked batches with record and file controls.
  • Implement deterministic, versioned, explainable reconciliation rules.
  • Build an exception workflow with explicit transitions, maker-checker and audit.
  • Build a React and TypeScript finance interface around the real workflow.
  • Test at every level, enforce security in the backend, and prepare a release and a demonstration.

This module at a glance

Lessons
12 lessons, building the first working version of the Apex platform
Stack
Java and Spring Boot, PostgreSQL, React and TypeScript, AWS
Runnable examples
Nine small programs (seven in Java 17, two in SQL) whose real output appears in the lessons
Practical work
An exercise in every lesson, a capstone build and an eight-scenario production failure lab
Assessment
A check in every lesson and a 12-question final assessment (target: 10 of 12)
Time
About 4 hours 15 minutes (254 minutes across 12 lessons), plus the capstone build

The scenario The engineering handoff

Apex has approved the architecture. The first working version must cover five business priorities. It should be small enough to build and test, and realistic enough to show enterprise practice. If implementation evidence changes the design, record the change; never drift from the architecture silently.

PriorityThe platform must
1. Reliable payment ingestionAccept notifications from two providers with different formats; authenticate, validate and normalize them; prevent duplicates; keep the source reference and the received time
2. Settlement ingestionAccept the bank’s settlement records, validate and normalize them, keep their source, and make them available for matching
3. ReconciliationFind corresponding records with approved rules, record the result, never create duplicate matches, and flag unmatched or ambiguous transactions
4. Exception managementLet finance users find, review, assign, annotate and resolve exceptions through an authorized workflow
5. Visibility and auditShow transaction, reconciliation and exception status, processing history, user actions and operational health

The concept Why not start with code?

A developer gets the architecture and starts writing Java classes. A few days later the team finds that the provider uses a different identifier, the schema cannot hold two providers, nobody defined duplicate behavior, finance needs pending settlement shown apart from failure, and the screen needs an investigation history the API does not return. These are not coding mistakes. They are gaps in turning the architecture into a plan. Before coding, break the system into capabilities that can each be built and tested on its own.

CapabilityEngineering workEvidence that it works
Payment ingestionProvider API adaptersAPI integration tests
ValidationRequest validationValidation tests
NormalizationMap provider formats to the canonical modelMapping tests
PersistenceEntities and migrationsRepository tests on a real database
IdempotencyUnique transaction identityDuplicate and concurrent request tests
Event processingOutbox publisher and idempotent consumersMessaging tests
ReconciliationMatching rulesMatching test suite with edge cases
Exception managementCase lifecycle and approvalsWorkflow and authorization tests
AuditRecord every state change, and refused attemptsAudit integration tests
User interfaceFinance operations screensUI and end-to-end tests

Every task gets acceptance criteria. For payment ingestion: a valid authenticated notification is accepted; invalid requests are rejected with a clear error; provider data is normalized; original provider identifiers are kept; a repeated request creates no second payment; the same ID with different content is refused; the processing state is visible; the action is recorded.

Work in slices The vertical slice

On the left, a photo of a layer cake with one slice cut out, showing every layer. On the right, a vertical slice for one payment: API, validation, application logic, persistence, tests and an observable outcome, a transaction lookup showing its status. Beside it, building one layer at a time: every table built, still no working flow. Build one thin slice that works end to end, then the next.
A slice of cake has every layer. So does a vertical slice: one capability, working end to end.

A vertical slice delivers one complete business capability across every layer it needs. The first Apex slice: a payment notification enters through the API, is validated and stored, and becomes visible through a transaction lookup. It is worth more than ten database entities with no working flow, because it can be tested and shown to the customer this week.

Dependencies A dependency-aware build order

Ten slices in dependency order: repository and environment, domain model and schema, payment ingestion, idempotency and events, settlement ingestion, reconciliation, exception management, finance UI, end-to-end tests, deployment preparation. Reconciliation needs both payments and settlements. Two bands run under every slice: tests written with each slice, and security and audit built in from the first API.
Dependencies set the order. Tests, security and audit ship with every slice, not at the end.

Practice Create the engineering backlog

Practical exercise

Exercise 01: the engineering implementation plan

Take the Module 06 architecture package and produce the plan the team will build from.

  1. An implementation backlog, one item per capability task.
  2. The dependencies between tasks.
  3. Acceptance criteria for each task.
  4. The first vertical slice.
  5. The unresolved architecture questions.
Show sample answers
  • Slice 1: POST a Provider A notification, store it, GET it back with status RECEIVED. Done when the API, validation, persistence and tests all pass and the lookup shows the stored values.
  • Dependency: reconciliation waits for payment and settlement persistence; the exception workbench waits for the exception API.
  • Open questions: is the provider transaction ID unique per provider or per account? What is the settlement window? Can one settlement cover several payments?

3 questions

Check your understanding

1. Why convert the architecture into tasks before coding?
2. Which is a vertical slice?
3. When should provider authentication be built?
Answer every question to submit.

What you can do now

  • Turn architecture capabilities into tasks with evidence.
  • Write acceptance criteria a tester can check.
  • Order work by dependency without leaving security or tests for later.
  • Define a first vertical slice.