An API Gateway is a server that acts as an API front-end, receiving API requests, enforcing throttling and security policies, passing requests to the back-end service and then passing the response back to the requester.
Mobile App sends all requests to 'api.company.com'. The Gateway routes 'api/users' to User Service and 'api/orders' to Order Service.
# Code Concept for API Gateway\n# This pattern is architectural.\n\nclass Service:\n def execute(self):\n # Implementation logic\n pass