System Architecture Guide

Author: Engineering Team | Version: 2.0 | Last Updated: December 2025

Overview

The Acme Platform follows a modular microservices architecture deployed on Kubernetes. Services communicate via gRPC for internal calls and expose REST APIs for external consumers. All data flows through a central event bus (Apache Kafka) for asynchronous processing.

Service Topology

Core Services

ServiceTech StackDatabaseResponsibility
API Gateway Envoy Proxy None Auth, rate limiting, routing, TLS termination
User Service Go + gRPC PostgreSQL Accounts, authentication, sessions, permissions
Project Service Go + gRPC PostgreSQL (pg_trgm) Project CRUD, member management, settings
Billing Service Python + FastAPI PostgreSQL (separate, PCI) Subscriptions, usage tracking, invoicing, Stripe

Supporting Services

ServiceTech StackDatabaseResponsibility
Notification Service Node.js Redis (queue) Email (SES), Slack, webhook delivery
Search Service Python + FastAPI Elasticsearch 8.x Full-text search, filters, facets
File Service Go S3 + metadata in PostgreSQL Uploads, virus scanning, thumbnails, CDN

Infrastructure

Kubernetes Clusters

ClusterRegionNodesPurpose
prod-us-eastus-east-112Primary production
prod-eu-westeu-west-18EMEA traffic
stagingus-east-14Pre-production
devus-east-12Development

Data Stores

TechnologyVersionUse CaseHosting
PostgreSQL16Transactional dataRDS Multi-AZ
Elasticsearch8.xSearch indices3-node cluster
Redis7Caching, sessionsElastiCache
Apache Kafka3.6Event streamingMSK
S3N/AObject storageAWS (intelligent tiering)

Request Lifecycle

  1. Client sends HTTPS request to the load balancer
  2. Load balancer routes to API Gateway (Envoy)
  3. Gateway validates JWT token with User Service
  4. Gateway routes request to the appropriate backend service
  5. Backend service processes request, writes to its database
  6. Backend service publishes event to Kafka
  7. Downstream services consume events asynchronously
  8. Response flows back through Gateway to client

Kafka Topics

TopicSchemaProducersConsumers
acme.users.eventsAvroUser ServiceSearch, Notification, Audit
acme.projects.eventsAvroProject ServiceSearch, Notification
acme.billing.eventsAvroBilling ServiceNotification, Audit
acme.audit.logAvroAll servicesAudit Service, S3 archiver

Monitoring Stack

Security

Network

Data

Compliance

StandardStatusAudit Frequency
SOC 2 Type IICertifiedAnnual
GDPRCompliant (data residency controls)Continuous
HIPAAReady (BAA available)Annual
Penetration TestingPassedAnnual (third-party)