All academies

Enterprise projects

Build systems, not toy apps

Each blueprint gives you the domain analysis, service boundaries, event flows, stack, and a milestone plan. Your job: implement it, one milestone at a time.

E-commerce Platform

medium

The canonical microservices capstone: catalog to checkout to delivery.

Services

CatalogCartOrderInventoryPaymentShippingNotificationAnalytics

Domain analysis

Core domain: ordering and fulfillment. Supporting: catalog, notifications. Generic: payments (integrate a PSP). Catalog is read-heavy (cache + search index); inventory needs per-SKU strict consistency; checkout is an orchestrated saga.

Event flows

  • OrderPlaced → Inventory reserves stock → StockReserved
  • StockReserved → Payment charges → PaymentCaptured | PaymentFailed
  • PaymentCaptured → Shipping creates shipment; Notification emails confirmation
  • PaymentFailed → Inventory releases reservation; Order marked FAILED
  • All events → Analytics warehouse

Suggested stack

Next.js storefrontNestJS servicesPostgreSQL per serviceRedis cartKafkaKubernetes

Milestones

  1. 1Catalog + Cart with Redis, deployed via Docker Compose
  2. 2Order service with orchestrated saga (in-memory broker)
  3. 3Kafka + outbox pattern; Payment and Inventory async
  4. 4Kubernetes deployment with HPA and rolling updates
  5. 5Full observability — tracing across the saga, RED dashboards

Food Delivery System

hard

Three-sided marketplace with real-time courier tracking.

Services

RestaurantMenuOrderCourier DispatchLocation TrackingPaymentNotificationETA Prediction

Domain analysis

Three actors (customer, restaurant, courier) each drive their own workflows against a shared order lifecycle. Dispatch is the core domain: matching couriers to orders under geo and time constraints. Location tracking is a high-volume, loss-tolerant stream.

Event flows

  • OrderPlaced → Restaurant accepts → OrderAccepted
  • OrderAccepted → Dispatch finds courier → CourierAssigned
  • CourierLocationUpdated (stream) → ETA service recalculates → EtaUpdated
  • OrderPickedUp → OrderDelivered → Payment captures → courier payout event

Suggested stack

React Native appsNestJSPostgreSQLRedis geoKafkaWebSocketsKubernetes

Milestones

  1. 1Restaurant + Menu + basic Order flow
  2. 2Courier dispatch with geohash matching
  3. 3Live location streaming and WebSocket fan-out to customers
  4. 4Order state machine hardening — every failure path compensated
  5. 5Surge handling: autoscaling dispatch and backpressure on location stream

Ride Sharing App

hard

Geo-matching, trip state machines, and a million location pings a minute.

Services

RiderDriverMatchingTripLocation IngestPricingPaymentSafety

Domain analysis

Matching under latency constraints is the core domain. Location ingest must absorb massive lossy streams; pricing needs surge computation over live supply/demand; trips are long-lived state machines that must survive app crashes and network drops on both sides.

Event flows

  • RideRequested → Matching queries nearby drivers → DriverOffered
  • DriverAccepted → TripStarted → stream of TripLocationUpdated
  • TripEnded → Pricing computes fare → Payment charges → ReceiptIssued
  • Anomaly in location stream → Safety service alerts

Suggested stack

KafkaRedis + H3 geo-indexingNestJSPostgreSQLgRPC between matching servicesKubernetes

Milestones

  1. 1Trip state machine with full event catalog
  2. 2Location ingest pipeline with sampling and geo-index
  3. 3Matching service with offer/timeout/reoffer loop
  4. 4Surge pricing from live supply-demand projections
  5. 5Multi-region partitioning by city

Banking Platform

hard

Event-sourced ledger, strict consistency, and audit-grade correctness.

Services

AccountLedgerTransferCard AuthorizationFraud DetectionStatementCustomerNotification

Domain analysis

The ledger is the core domain and the one place where event sourcing is unambiguously right: double-entry bookkeeping is an append-only event log by design. Transfers between accounts are sagas with reserved funds. Card authorization has a hard 2-second SLA. Everything is audited.

Event flows

  • TransferRequested → funds reserved (debit hold) → FundsReserved
  • FundsReserved → credit leg applied → TransferCompleted (or compensating release)
  • CardAuthRequested → fraud score (sync, 200ms budget) → AuthApproved/Declined
  • Daily → Statement service folds ledger events into statements

Suggested stack

Event store (Postgres append-only)KafkaNestJSgRPC for auth pathKubernetesVault

Milestones

  1. 1Event-sourced ledger with double-entry invariants and snapshots
  2. 2Transfer saga with idempotency keys and reserved funds
  3. 3Card auth path meeting p99 < 500ms with fraud scoring
  4. 4Projections: balances, statements, regulator reports
  5. 5Disaster recovery drill — rebuild all projections from the log

Hospital Management

medium

Appointments, records, and pharmacy under strict privacy boundaries.

Services

Patient RegistryAppointmentClinical RecordsPharmacyBillingLab ResultsNotificationAudit

Domain analysis

Privacy drives the boundaries: clinical records demand field-level access control and complete audit trails, while scheduling is a classic booking domain with contention (double-booking prevention). Lab results arrive from external systems via HL7/FHIR adapters — an anti-corruption layer.

Event flows

  • AppointmentBooked → Notification reminds patient → reminder ladder
  • LabResultReceived (external) → adapter translates → ResultAvailable → doctor notified
  • PrescriptionIssued → Pharmacy dispenses → BillingLineAdded
  • Every record access → AuditEvent (immutable store)

Suggested stack

NestJSPostgreSQL with row-level securityRabbitMQFHIR adapter serviceKubernetes

Milestones

  1. 1Patient registry + appointment booking with optimistic locking
  2. 2Clinical records with field-level authorization and audit events
  3. 3External lab integration through an anti-corruption layer
  4. 4Pharmacy + billing flows
  5. 5Compliance pack: audit query service, retention policies

CRM Platform

medium

Contacts, pipelines, and automation with heavy read composition.

Services

ContactDeal PipelineActivityEmail IntegrationAutomation EngineReportingSearchWebhook Gateway

Domain analysis

CRMs are read-composition heavy: a contact page shows contacts + deals + activities + emails in one view — a textbook case for API composition or CQRS read models. The automation engine (when deal moves stage → send email) is an event-rule processor.

Event flows

  • DealStageChanged → Automation evaluates rules → actions (email, task, webhook)
  • EmailReceived → matched to contact → ActivityRecorded
  • Any entity change → Search indexer updates Elasticsearch
  • All events → Reporting projections (funnel, velocity)

Suggested stack

NestJSPostgreSQLElasticsearchRabbitMQRedisKubernetes

Milestones

  1. 1Contact + Deal CRUD with pipeline state machine
  2. 2Event bus + activity timeline projection
  3. 3Automation engine with rule DSL and retry-safe actions
  4. 4Search service and contact-360 composed read model
  5. 5Multi-tenant isolation and per-tenant rate limits

Social Media Platform

hard

Feeds, follows, and fan-out at scale.

Services

User GraphPostFeedMediaNotificationModerationTrendingDirect Messages

Domain analysis

The core problem is feed fan-out: push (precompute feeds on write) vs pull (compose on read) vs hybrid for celebrities. Media upload/processing is a pipeline; moderation is an async ML gate; trending is stream aggregation over windows.

Event flows

  • PostCreated → fan-out workers write to follower feeds (push) except mega-accounts (pull)
  • PostCreated → Moderation scores → PostHidden if flagged
  • MediaUploaded → transcode pipeline → MediaReady
  • Engagement events → Trending windowed aggregation

Suggested stack

KafkaRedis feedsNestJSPostgreSQL + CassandraS3-compatible storageKubernetes

Milestones

  1. 1User graph + posts with cursor pagination
  2. 2Push fan-out feeds with Redis; measure write amplification
  3. 3Hybrid celebrity strategy + feed merge on read
  4. 4Media pipeline with async transcoding
  5. 5Trending + moderation stream processors

Streaming Platform

hard

Catalog, playback, and a 500k events/sec view pipeline.

Services

CatalogPlayback SessionEntitlementView HistoryRecommendationTranscodingCDN TokenWatch Party

Domain analysis

Playback start is the critical path: entitlement check + CDN token issuance must be p99 < 300ms. View events are a firehose feeding history and recommendations. Watch party requires stateful realtime sync — the one place WebSockets and server affinity are unavoidable.

Event flows

  • PlaybackStarted → ViewEvent stream → History + Recommendation features
  • ContentIngested → Transcoding DAG → renditions ready → Catalog updated
  • WatchPartyAction (play/pause/seek) → realtime fan-out to participants
  • EntitlementChanged → active session revalidation

Suggested stack

Kafka + stream processinggRPC playback pathRedisNestJSWebSocketsKubernetes

Milestones

  1. 1Catalog + entitlements + signed CDN URLs
  2. 2Playback session service meeting latency SLO
  3. 3View-event pipeline to history projections
  4. 4Recommendation features from stream aggregations
  5. 5Watch party realtime service with regional affinity

IoT Platform

medium

Device fleets, telemetry ingestion, and command-and-control.

Services

Device RegistryTelemetry IngestRules EngineCommand DispatchFirmware UpdateDigital TwinAlertingTime-Series Store

Domain analysis

Millions of devices with flaky connectivity: MQTT ingestion with backpressure, a digital twin holding last-known state per device, rules evaluating telemetry streams, and command delivery with at-least-once semantics and device-side dedup. Firmware rollout is a canary deployment problem — for hardware.

Event flows

  • TelemetryReceived → Twin updated → Rules evaluated → AlertRaised / CommandIssued
  • CommandIssued → Dispatch queues per device → delivery on next connect → CommandAcked
  • FirmwareReleased → staged rollout waves → health telemetry gates next wave

Suggested stack

MQTT broker (EMQX)KafkaTimescaleDBNestJSRedis twinsKubernetes

Milestones

  1. 1Device registry + MQTT ingest to Kafka
  2. 2Digital twin projections + time-series storage
  3. 3Rules engine with windowed conditions
  4. 4Command dispatch with offline queuing and dedup
  5. 5Canary firmware rollout orchestrator

ERP System

hard

Inventory, procurement, HR, and finance — integration-heavy enterprise reality.

Services

General LedgerProcurementInventoryHRPayrollVendorApproval WorkflowIntegration Hub

Domain analysis

ERPs are workflow and integration machines: purchase orders flow through multi-step approvals; payroll runs are long-lived batch sagas; the integration hub (anti-corruption layer) shields the core from dozens of external formats. Finance requires the same ledger discipline as banking.

Event flows

  • PurchaseRequisition → Approval workflow (n steps) → POIssued → Vendor notified
  • GoodsReceived → Inventory updated + Invoice matching (3-way match) → PaymentScheduled
  • PayrollRunStarted → per-employee calculation saga → GL postings → PayslipsIssued

Suggested stack

NestJSPostgreSQLTemporal (workflows)RabbitMQKubernetes

Milestones

  1. 1Procurement flow with approval workflow engine
  2. 2Inventory with 3-way invoice matching saga
  3. 3GL postings from all modules via events
  4. 4Payroll batch saga with resume-on-failure
  5. 5Integration hub with per-partner adapters and contract tests