Option 1:

Run zero-infrastructure APIs using Lambda

In this approach, the API itself is directly implemented using AWS Lambda – a compute service that runs code in response to events and automatically manages compute resources. No additional API servers or hosting resources are required. After an incoming call has been authenticated, a second Lambda function can deliver the response.

Option 2:

Run APIs with Backend Services Like EC2

In the second scenario, the Amazon API Gateway and 3scale integrated solution can be used with a hosted HTTP endpoint. This can be configured in the Amazon API Gateway with straighforward mapping using standard HTTP calls. Endpoints can be hosted anywhere – including with Amazon’s own EC2 service.

Optional Extensions Using CloudFront and CloudWatch

Optional extensions can be deployed by using AWS CloudFront and/or CloudWatch, and can be applied to each of the two integration types. CloudFront provides perimeter protection against DDoS attacks, minimal latency and load reduction with optimised geographic deployment, as well as acceleration via content caching. CloudWatch provides enhanced monitoring capabilities including performance metrics and info on API calls, data latency and error rates.