Integrating API Gateway and
internal ELB
Juan Cruz Díaz
DevOps @ DinoCloud
• Case architecture overview
• Problem context
• Proxying request from the world
• Security consideration
• Cost
• Performance concerns
• Demo
Agenda
Case architecture overview
Problem Context
• API Service, more than one service behind Api Gateway
• Not multi access point to same service
• IP source white list are not allowed
• AWS limitations? Api Gw + internal ELB is not possible
Case architecture overview
What is Lambda?
AWS Lambda lets you run code without provisioning or managing servers.
You pay only for the compute time you consume. There is no charge when
your code is not running.
Continuous Scaling. AWS Lambda automatically scales your application by
running code in response to each trigger. Your code runs in parallel and
processes each trigger individually, scaling precisely with the size of the
workload.
• Permissions for your Lambda function. It grants your Lambda function
access to particular AWS managed services or infrastructure (Create Logs,
Access DynamoDB, send SQS message etc.).
• Amazon API Gateway Lambda function invocation permission, API GW
cannot invoke your Lambda function without explicit permission to do that.
Security considerations
Cost
Performance concerns
20 % response time
Integrating API Gateway and internal ELB

Integrating API Gateway and internal ELB

  • 1.
    Integrating API Gatewayand internal ELB Juan Cruz Díaz DevOps @ DinoCloud
  • 2.
    • Case architectureoverview • Problem context • Proxying request from the world • Security consideration • Cost • Performance concerns • Demo Agenda
  • 3.
  • 4.
    Problem Context • APIService, more than one service behind Api Gateway • Not multi access point to same service • IP source white list are not allowed • AWS limitations? Api Gw + internal ELB is not possible
  • 5.
  • 6.
    What is Lambda? AWSLambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume. There is no charge when your code is not running. Continuous Scaling. AWS Lambda automatically scales your application by running code in response to each trigger. Your code runs in parallel and processes each trigger individually, scaling precisely with the size of the workload.
  • 7.
    • Permissions foryour Lambda function. It grants your Lambda function access to particular AWS managed services or infrastructure (Create Logs, Access DynamoDB, send SQS message etc.). • Amazon API Gateway Lambda function invocation permission, API GW cannot invoke your Lambda function without explicit permission to do that. Security considerations
  • 8.
  • 9.

Editor's Notes

  • #8 http://interworks.com.mk/aws-api-gateway-lambda-function-invocation-permissions-nuts-and-bolts/
  • #9 https://s3.amazonaws.com/lambda-tools/pricing-calculator.html
  • #10 https://s3.amazonaws.com/lambda-tools/pricing-calculator.html