Integration, Deployment Preparation and Engineering Demonstration

Integrating the whole workflow, preparing deployment artifacts and release checks, and demonstrating the business outcome; with the capstone build, a production failure lab and the final assessment.

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

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.

The complete workflow: payment provider, payment ingestion API, validate and normalize, database and outbox, event processing, reconciliation engine, which also receives settlement ingestion from the bank file. The engine produces a match, shown in the transaction view, or an exception, worked in the finance workbench; both feed the audit history, and everything feeds the operations dashboard and finance UI. Each box is tagged with its lesson. Running through every box: tests at every level, authentication, roles and audit, and health checks, logs, metrics and traces.
One flow, built slice by slice, tested end to end.

Ready to ship Deployment artifacts and release checks

PrepareFor the Module 06 container-based AWS design
Build configurationOne command builds and tests the backend and frontend
Container imageA small image for the Spring Boot application, running as a non-root user
Runtime configurationEnvironment variables and secrets references, no secrets inside the image
Migration executionMigrations run as a release step before new code takes traffic
Health checksLiveness and readiness endpoints wired to the container platform
Deployment definitionThe ECS service and task definitions as infrastructure code
Monitoring integrationLogs, 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

On the left, a historical photo of a bridge load test with heavy loads on the span while engineers watch. On the right, nine demonstration steps: a payment notification arrives; the same one again stores one payment; a settlement file and its batch report; a successful match with evidence; an unmatched payment opens an exception; an analyst investigates; an authorized resolution with a second approver; the audit history, denials included; the operations dashboard. Then three lists: works, the nine steps; not built yet, for example split settlements; to validate, peak load, RTO and RPO.
A bridge is proven under load in front of witnesses before it opens.

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.

  1. Test data and API examples ready to run.
  2. The UI workflow from dashboard to resolved case.
  3. A live failure scenario.
  4. 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.

CapabilityRequired
1. Payment ingestionProvider A and B payloads; authentication on the raw body; validation and normalization; source references; duplicates and conflicts handled
2. Settlement ingestionBatches with checksum and status; strict parsing; record and file controls; duplicate files and lines
3. Event processingTransactional outbox; idempotent consumers; retries; failed messages handled; processing status visible
4. ReconciliationApproved versioned rules; evidence; no duplicate matches; ambiguous, waiting and missing handled; safe re-runs
5. Exception managementCases with explicit transitions, assignment, notes, maker-checker approval and an audit of every attempt
6. Finance interfaceDashboard, transaction search and detail, exception workbench, investigation history, audit view
7. Engineering qualityAutomated 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.

  1. A. Duplicate notification: Provider A sends the same transaction five times in a few seconds.
  2. B. Publication failure: the payment commits but the broker is down.
  3. C. Consumer crash: a consumer processes an event and crashes before acknowledging.
  4. D. Late settlement: the payment arrives hours before the settlement record.
  5. E. Concurrent matching: two workers reconcile the same payment or settlement at once.
  6. F. Invalid settlement file: malformed records and an unexpected control total.
  7. G. Unauthorized resolution: a customer support user tries to approve a resolution.
  8. 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 rubricPoints
Engineering plan and project foundation7
Domain model and database implementation8
Payment API and provider integration10
Idempotency and reliable event processing12
Settlement ingestion8
Reconciliation engine12
Exception management and audit10
React and TypeScript finance UI10
Automated testing10
Security and production readiness8
Integration and customer demonstration5
Total100
For reviewers: areaFull points needThe most common deduction
Engineering plan and project foundation (7)Vertical slices with owners, and a build that runs from a clean checkoutA 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 testsA 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 testDuplicate protection by an application check only
Settlement ingestion (8)Batches tracked, strict parsing, a totals check, every rejected line reportedRejected 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 AMBIGUOUSMatching 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 auditedAn analyst can edit an amount
React and TypeScript finance UI (10)Exception list and detail with the evidence, the right status words, usable by keyboardPayment, reconciliation and case statuses mixed together
Automated testing (10)Unit, contract and real-database integration tests, including negative casesTests for successful matches only
Security and production readiness (8)Roles with least privilege, secrets outside the code, a completed readiness checklistA secret committed to the repository
Integration and customer demonstration (5)The whole workflow on fictional data, with a recorded fallbackRealistic 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.

ScoreLevelWhat it means
90 to 100Strong enterprise implementationA coherent, tested application with correct transaction behavior, secure workflows and useful operational visibility
80 to 89Strong implementation capabilityThe core workflows work, with gaps in reliability, testing, usability or operational readiness
70 to 79Developing engineering capabilityMajor components work, but integration, financial integrity or production engineering need improvement
Below 70More practice neededRevisit domain modeling, API contracts, persistence, idempotency and testing before moving on

Module complete What your repository should contain

  1. A Spring Boot backend organized by capability, and a React and TypeScript frontend.
  2. A PostgreSQL schema with versioned migrations.
  3. Provider adapters and the payment ingestion API.
  4. The settlement ingestion workflow.
  5. Reliable event publication and idempotent event processing.
  6. The reconciliation engine.
  7. Exception management with an audit history.
  8. The operations dashboard, transaction search and detail, and the workbench.
  9. Automated tests at every level, and security controls.
  10. 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

1. Why convert architecture requirements into implementation tasks before coding?
2. What is the main advantage of a modular monolith for the first Apex version?
3. Why should financial amounts avoid Java floating-point types?
4. Why is a database uniqueness constraint important for idempotency?
5. What does the transactional outbox pattern help ensure?
6. Why should Provider A and Provider B have separate adapters?
7. What should happen when several settlement records plausibly match?
8. Why should the exception workflow use explicit state transitions?
9. Why is hiding a UI button not sufficient authorization?
10. Which test best verifies that a duplicate event creates no second effect?
11. What is the purpose of an end-to-end test?
12. What should an FDE demonstrate to the customer?
Answer every question to submit.

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.