The concept Integrate the complete workflow
You have built the capabilities one slice at a time. Now prove they work together, with the architecture’s decisions and data ownership boundaries intact.
Ready to ship Deployment artifacts and release checks
| Prepare | For the Module 06 container-based AWS design |
|---|---|
| Build configuration | One command builds and tests the backend and frontend |
| Container image | A small image for the Spring Boot application, running as a non-root user |
| Runtime configuration | Environment variables and secrets references, no secrets inside the image |
| Migration execution | Migrations run as a release step before new code takes traffic |
| Health checks | Liveness and readiness endpoints wired to the container platform |
| Deployment definition | The ECS service and task definitions as infrastructure code |
| Monitoring integration | Logs, metrics and traces flowing to CloudWatch with alarms |
- Run the complete automated test suite, and validate migrations on a copy of realistic data.
- Check backward compatibility: the old version must still run against the new schema during the rollout.
- Verify secret access, health checks and monitoring in the target environment.
- Agree rollback or forward-fix procedures.
Show the customer Demonstrate the business outcome
The demonstration is not a tour of Java classes. Show the business process working, with the real failure cases from this module, then say honestly what works, what is not built yet and what still needs validating.
Practical exercise
Exercise 12: the engineering demonstration
Prepare a working demonstration of the complete business flow.
- Test data and API examples ready to run.
- The UI workflow from dashboard to resolved case.
- A live failure scenario.
- Audit evidence, known limitations and the next implementation steps.
Show a sample limitations slide
- Works: both providers, duplicates and conflicts, settlement batches with controls, two matching rules, exceptions with maker-checker, audit, the five screens.
- Not built yet: split or aggregated settlements, notifications, report exports.
- To validate with Apex: peak throughput, the settlement window, RTO and RPO, retention periods, the provider ID scope.
Capstone challenge Build the Apex reconciliation platform
You are the FDE delivering the first working version. Apex expects a functioning application, not diagrams or isolated endpoints.
| Capability | Required |
|---|---|
| 1. Payment ingestion | Provider A and B payloads; authentication on the raw body; validation and normalization; source references; duplicates and conflicts handled |
| 2. Settlement ingestion | Batches with checksum and status; strict parsing; record and file controls; duplicate files and lines |
| 3. Event processing | Transactional outbox; idempotent consumers; retries; failed messages handled; processing status visible |
| 4. Reconciliation | Approved versioned rules; evidence; no duplicate matches; ambiguous, waiting and missing handled; safe re-runs |
| 5. Exception management | Cases with explicit transitions, assignment, notes, maker-checker approval and an audit of every attempt |
| 6. Finance interface | Dashboard, transaction search and detail, exception workbench, investigation history, audit view |
| 7. Engineering quality | Automated tests at every level, security controls, migrations, configuration, monitoring, deployment readiness |
Practical exercise
Production failure lab
After the first version works, break it on purpose. For each scenario, demonstrate the behavior and show the evidence.
- A. Duplicate notification: Provider A sends the same transaction five times in a few seconds.
- B. Publication failure: the payment commits but the broker is down.
- C. Consumer crash: a consumer processes an event and crashes before acknowledging.
- D. Late settlement: the payment arrives hours before the settlement record.
- E. Concurrent matching: two workers reconcile the same payment or settlement at once.
- F. Invalid settlement file: malformed records and an unexpected control total.
- G. Unauthorized resolution: a customer support user tries to approve a resolution.
- H. Database interruption: the database is briefly unavailable during event processing.
Show sample evidence
- A: one payment row and one outbox event; the first response is 202, the other four are 200 with the same ingestion ID (ingestion.sql steps 1 and 2).
- B: outbox rows stay PENDING; after the broker returns, the publisher sends them; no payment lacks an event.
- C: the redelivered event finds its processed_event row and changes nothing (ingestion.sql step 4).
- D: AWAITING_SETTLEMENT inside the window, then MATCHED when the file arrives; never marked failed (Reconciliation.java, PAY-77850).
- E: the partial unique index refuses the second MATCHED row; the losing worker re-reads the state (ingestion.sql step 5).
- F: COMPLETED_WITH_ERRORS, rejected lines listed, the total gap explained (SettlementBatch.java).
- G: 403 and a DENIED audit entry (ExceptionWorkflow.java, user-310).
- H: the consumer retries with backoff; the transaction either committed fully or not at all; no half-applied result.
| Capstone rubric | Points |
|---|---|
| Engineering plan and project foundation | 7 |
| Domain model and database implementation | 8 |
| Payment API and provider integration | 10 |
| Idempotency and reliable event processing | 12 |
| Settlement ingestion | 8 |
| Reconciliation engine | 12 |
| Exception management and audit | 10 |
| React and TypeScript finance UI | 10 |
| Automated testing | 10 |
| Security and production readiness | 8 |
| Integration and customer demonstration | 5 |
| Total | 100 |
| For reviewers: area | Full points need | The most common deduction |
|---|---|---|
| Engineering plan and project foundation (7) | Vertical slices with owners, and a build that runs from a clean checkout | A plan by layers: all the database first, then all the API |
| Domain model and database implementation (8) | Schema changed only by migrations; money in minor units with its currency; UNIQUE (provider, transaction ID) | Money stored as a floating-point number |
| Payment API and provider integration (10) | The frozen v1 contract, including the signature, the replay window and every error code, proved by contract tests | A stack trace returned for a bad request |
| Idempotency and reliable event processing (12) | INSERT ... ON CONFLICT, the outbox in the same transaction, consumers that skip processed events, and an interleaving test | Duplicate protection by an application check only |
| Settlement ingestion (8) | Batches tracked, strict parsing, a totals check, every rejected line reported | Rejected lines dropped without a report |
| Reconciliation engine (12) | Agreed rules with versions; one match per settlement and per payment, enforced by the database; look-alikes marked AMBIGUOUS | Matching on amount and date alone |
| Exception management and audit (10) | Every case state reachable only by allowed moves; a required reason; adjustments approved by a second person; every action audited | An analyst can edit an amount |
| React and TypeScript finance UI (10) | Exception list and detail with the evidence, the right status words, usable by keyboard | Payment, reconciliation and case statuses mixed together |
| Automated testing (10) | Unit, contract and real-database integration tests, including negative cases | Tests for successful matches only |
| Security and production readiness (8) | Roles with least privilege, secrets outside the code, a completed readiness checklist | A secret committed to the repository |
| Integration and customer demonstration (5) | The whole workflow on fictional data, with a recorded fallback | Realistic personal data in the demo |
Score from the evidence in the submission, not from the demo. Full points need something a second reviewer could check: a test result, a log, a measured number. A claim without evidence earns at most half the points for that area, and every deduction gets one sentence saying why.
| Score | Level | What it means |
|---|---|---|
| 90 to 100 | Strong enterprise implementation | A coherent, tested application with correct transaction behavior, secure workflows and useful operational visibility |
| 80 to 89 | Strong implementation capability | The core workflows work, with gaps in reliability, testing, usability or operational readiness |
| 70 to 79 | Developing engineering capability | Major components work, but integration, financial integrity or production engineering need improvement |
| Below 70 | More practice needed | Revisit domain modeling, API contracts, persistence, idempotency and testing before moving on |
Module complete What your repository should contain
- A Spring Boot backend organized by capability, and a React and TypeScript frontend.
- A PostgreSQL schema with versioned migrations.
- Provider adapters and the payment ingestion API.
- The settlement ingestion workflow.
- Reliable event publication and idempotent event processing.
- The reconciliation engine.
- Exception management with an audit history.
- The operations dashboard, transaction search and detail, and the workbench.
- Automated tests at every level, and security controls.
- Deployment preparation artifacts, demonstration data and instructions.
Passing score: 10 of the 12 questions in the final assessment below, plus a capstone that scores at least 80 of 100 on the rubric.
12 questions
Final assessment
What you can do now
- Plan and build an enterprise application in vertical slices.
- Implement idempotent ingestion, reliable events, settlement batches and deterministic matching.
- Build a controlled exception workflow and an honest finance UI.
- Test, secure, prepare and demonstrate the system with evidence.