Architecture Patterns at Scale

Choose client-server, microservices, serverless, event-driven or peer-to-peer architecture based on ownership, failure boundaries and operational cost.

Architecture patterns: central services, independently deployed services, event functions and decentralized peersArchitecture patterns: central services, independently deployed services, event functions and decentralized peers

StyleGood fitMain cost
Client-serverMost products starting outCentral service capacity
MicroservicesIndependent domain ownership/deploymentsDistributed operations and contracts
ServerlessBursty event-driven workCold starts, limits, observability
Event-drivenDecoupled side effectsOrdering, replay, eventual consistency
Peer-to-peerDirect decentralized sharingDiscovery, trust, NAT traversal

Start with the smallest shape that meets the product need. A peer-to-peer network removes a central data path but does not remove coordination, security or abuse problems.