The API gateway is the most consequential infrastructure decision in a microservices architecture and the one most consistently underestimated. This guide covers what concerns belong in the gateway and what does not, the architectural variants (edge gateway, mesh gateway, BFF), production configuration patterns for Kong / AWS API Gateway / Envoy / Traefik, the failure modes that turn a gateway from an asset into a single point of failure, and the role of the gateway in modern AI and LLM architectures.