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
mediumThe canonical microservices capstone: catalog to checkout to delivery.
Services
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
Milestones
- 1Catalog + Cart with Redis, deployed via Docker Compose
- 2Order service with orchestrated saga (in-memory broker)
- 3Kafka + outbox pattern; Payment and Inventory async
- 4Kubernetes deployment with HPA and rolling updates
- 5Full observability — tracing across the saga, RED dashboards
Food Delivery System
hardThree-sided marketplace with real-time courier tracking.
Services
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
Milestones
- 1Restaurant + Menu + basic Order flow
- 2Courier dispatch with geohash matching
- 3Live location streaming and WebSocket fan-out to customers
- 4Order state machine hardening — every failure path compensated
- 5Surge handling: autoscaling dispatch and backpressure on location stream
Ride Sharing App
hardGeo-matching, trip state machines, and a million location pings a minute.
Services
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
Milestones
- 1Trip state machine with full event catalog
- 2Location ingest pipeline with sampling and geo-index
- 3Matching service with offer/timeout/reoffer loop
- 4Surge pricing from live supply-demand projections
- 5Multi-region partitioning by city
Banking Platform
hardEvent-sourced ledger, strict consistency, and audit-grade correctness.
Services
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
Milestones
- 1Event-sourced ledger with double-entry invariants and snapshots
- 2Transfer saga with idempotency keys and reserved funds
- 3Card auth path meeting p99 < 500ms with fraud scoring
- 4Projections: balances, statements, regulator reports
- 5Disaster recovery drill — rebuild all projections from the log
Hospital Management
mediumAppointments, records, and pharmacy under strict privacy boundaries.
Services
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
Milestones
- 1Patient registry + appointment booking with optimistic locking
- 2Clinical records with field-level authorization and audit events
- 3External lab integration through an anti-corruption layer
- 4Pharmacy + billing flows
- 5Compliance pack: audit query service, retention policies
CRM Platform
mediumContacts, pipelines, and automation with heavy read composition.
Services
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
Milestones
- 1Contact + Deal CRUD with pipeline state machine
- 2Event bus + activity timeline projection
- 3Automation engine with rule DSL and retry-safe actions
- 4Search service and contact-360 composed read model
- 5Multi-tenant isolation and per-tenant rate limits
Feeds, follows, and fan-out at scale.
Services
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
Milestones
- 1User graph + posts with cursor pagination
- 2Push fan-out feeds with Redis; measure write amplification
- 3Hybrid celebrity strategy + feed merge on read
- 4Media pipeline with async transcoding
- 5Trending + moderation stream processors
Streaming Platform
hardCatalog, playback, and a 500k events/sec view pipeline.
Services
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
Milestones
- 1Catalog + entitlements + signed CDN URLs
- 2Playback session service meeting latency SLO
- 3View-event pipeline to history projections
- 4Recommendation features from stream aggregations
- 5Watch party realtime service with regional affinity
IoT Platform
mediumDevice fleets, telemetry ingestion, and command-and-control.
Services
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
Milestones
- 1Device registry + MQTT ingest to Kafka
- 2Digital twin projections + time-series storage
- 3Rules engine with windowed conditions
- 4Command dispatch with offline queuing and dedup
- 5Canary firmware rollout orchestrator
ERP System
hardInventory, procurement, HR, and finance — integration-heavy enterprise reality.
Services
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
Milestones
- 1Procurement flow with approval workflow engine
- 2Inventory with 3-way invoice matching saga
- 3GL postings from all modules via events
- 4Payroll batch saga with resume-on-failure
- 5Integration hub with per-partner adapters and contract tests