What is Uber's Domain-Oriented Microservices Architecture (DOMA)?

Topic: microservices, Real-World. Level: Hard.

Answer

After thousands of microservices caused sprawl and cognitive overload, Uber grouped related services into **domains** with clear boundaries, and fronted each domain with a **gateway** so consumers depend on the domain interface, not individual services. Layered dependencies flow one direction (no cycles), and extension points allow customization without forking. DOMA is essentially applying DDD bounded contexts and layering to tame microservice proliferation — balancing team autonomy with system comprehensibility. ```text Consumers ─▶ Domain Gateway ─▶ [ services within one domain ] Principles: - Domains = bounded contexts (grouped related services) - Gateway per domain hides internal services - One-directional layered dependencies (no cycles) - Extension points instead of forking Goal: keep microservice benefits without the "too many services" chaos ```