ENGINEERING CASE STUDY

FIAP SOAT — Cloud-Native Platform (29 Repos, Terraform & K8s/ECS)

Capstone distributed architecture project engineered throughout the Postgraduate specialization in Software Architecture (FIAP — Pós-Tech), spanning 29 public repositories across 5 evolutionary phases plus a cloud Hackathon alongside a consolidated reference repository. The platform exercises every discipline of modern Cloud-Native engineering: Hexagonal & Clean Architecture domain isolation, autonomous Java/Spring Boot microservices, polyglot persistence (PostgreSQL + AWS DynamoDB), modular Terraform (HCL) infrastructure, and elastic orchestration across Kubernetes (EKS/HPA) and AWS ECS.

29 Repos Multi-Phase Public Ecosystem
5 Services Java / Spring Boot Microservices
SQL + NoSQL PostgreSQL & AWS DynamoDB
K8s + ECS Terraform IaC & Autoscaling

Deliberate Multi-Phase Evolution (Phase 1 → Phase 5 & Hackathon)

Rather than starting prematurely distributed, the system evolved through progressive architectural maturity gates — keeping core domain rules untouched while scaling cloud boundaries, SAGA coordination, and Infrastructure as Code:

Stage 01

Hexagonal & Clean Arch

Phases 1–2

Stage 02

Kubernetes, Managed DB & API Gateway

Phase 3

Stage 03

4-Service DDD Decomposition

Phase 4

Stage 04

SAGA Flows & Resilience

Phase 5

Stage 05

Reusable ECS Terraform Module + Timekeeping MS

Hackathon

Bounded Contexts & Database-per-Service Isolation

Each service maintains independent deployment lifecycles, isolated storage (Database per Service), and shared CI/CD templates (fase5-reusable-github-workflows and hackathon-reusable-github-workflows), eliminating shared-database coupling:

MicroserviceDomain ResponsibilityPersistence & Scaling Strategy
ms-clienteCustomer identity, registration, and profile governanceIsolated relational schema with validated REST boundary contracts
ms-pedidoOrder lifecycle orchestration and SAGA cross-context workflowsHigh-throughput persistence and resilient asynchronous coordination
ms-pagamentoTransactional billing, payment confirmations, and webhooksCritical isolation backed by horizontal pod autoscaling (HPA) under spikes
ms-producaoKitchen preparation queue, status tracking, and fulfillmentLow-latency state reads and atomic status updates on AWS DynamoDB
hackaton-ms-pontoHigh-concurrency employee timekeeping and clock-in serviceProvisioned via a custom reusable Terraform module onto AWS ECS + API Gateway

SRE, Modular Terraform (HCL) & Reusable CI/CD

  • Modular HCL Provisioning (Terraform + LocalStack): Dedicated infrastructure repositories (fase5-infra-kubernetes, fase5-infra-apigateway, fase3-infra-db, hackathon-infra-ecs, and hackathon-ecs-service-terraform-module) codify private VPC networking, API Gateways, managed databases, and compute clusters, verified locally via LocalStack and fase5-local-environment.
  • Elastic Surge Absorption (Kubernetes HPA & AWS ECS): Deployment, Service, ConfigMap, and HorizontalPodAutoscaler manifests scale replicas horizontally on CPU/request thresholds with zero downtime.
  • Standardized Delivery Governance (Reusable GitHub Workflows): Centralized GitHub Actions templates enforce Maven builds (mvnw), static verification, Docker image publishing, and automated rollouts across all repositories in the organization.
Audit All 29 Repositories & Terraform Modules on GitHub

Inspect both the consolidated overview and each individual microservice, HCL module (Kubernetes/ECS/API Gateway), and reusable CI/CD workflow in the public organization.