Custom API Gateway vs AWS/Azure API Gateway

When to Build, When to Buy