Monolith first for small teams; split along business domains when independent deployment, scaling or team ownership matter. Costs: network calls, partial failures, distributed data, harder debugging.
API gateway: single entry point for authentication, rate limiting, routing, TLS termination and request aggregation (backend-for-frontend).
Service discovery: instances register themselves (Consul, etcd, Kubernetes Services/DNS); health checks remove bad instances; clients or load balancers resolve names to healthy instances.
Service mesh (Envoy sidecars with Istio/Linkerd): mTLS, retries, timeouts, circuit breaking and telemetry without application changes.
Database per service keeps services decoupled; share data through APIs or events, not by reading each other's tables.
Resilience: timeouts on every call, retries with jitter (idempotent operations only), circuit breakers, bulkheads, fallbacks.