Deploying the API gateway next to your backend services not only reduces the network latency between backend service and the gateway, but it allows you to adhere to the security and compliance requirements of your organization. Additionally, you inherit the complete API management capabilities into your deployments such as API lifecycle management, OAuth token-based security with scope validation, throttling policies, statistics, anomaly detection, monetization, etc.

As an example, if your services are deployed in a container management system like Kubernetes on any cloud such as Alibaba, Google, AWS, Azure, etc., the gateway can be deployed as a container on the CMS while other API management components are deployed in WSO2 API Cloud.

Source: DZone