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.
| Priority | The platform must |
|---|---|
| 1. Reliable payment ingestion | Accept notifications from two providers with different formats; authenticate, validate and normalize them; prevent duplicates; keep the source reference and the received time |
| 2. Settlement ingestion | Accept the bank’s settlement records, validate and normalize them, keep their source, and make them available for matching |
| 3. Reconciliation | Find corresponding records with approved rules, record the result, never create duplicate matches, and flag unmatched or ambiguous transactions |
| 4. Exception management | Let finance users find, review, assign, annotate and resolve exceptions through an authorized workflow |
| 5. Visibility and audit | Show 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.
| Capability | Engineering work | Evidence that it works |
|---|---|---|
| Payment ingestion | Provider API adapters | API integration tests |
| Validation | Request validation | Validation tests |
| Normalization | Map provider formats to the canonical model | Mapping tests |
| Persistence | Entities and migrations | Repository tests on a real database |
| Idempotency | Unique transaction identity | Duplicate and concurrent request tests |
| Event processing | Outbox publisher and idempotent consumers | Messaging tests |
| Reconciliation | Matching rules | Matching test suite with edge cases |
| Exception management | Case lifecycle and approvals | Workflow and authorization tests |
| Audit | Record every state change, and refused attempts | Audit integration tests |
| User interface | Finance operations screens | UI 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
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
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.
- An implementation backlog, one item per capability task.
- The dependencies between tasks.
- Acceptance criteria for each task.
- The first vertical slice.
- 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
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.