Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Amazon API Gateway

1,746 views

Published on

Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. With a few clicks in the AWS Management Console, you can create an API that acts as a “front door” for applications to access data, business logic, or functionality from your back-end services, such as workloads running on Amazon Elastic Compute Cloud (Amazon EC2), code running on AWS Lambda, or any Web application. Amazon API Gateway handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, authorization and access control, monitoring, and API version management.

Presented by: Danilo Poccia, Technical Evangelist, Amazon Web Services

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Amazon API Gateway

  1. 1. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon API Gateway APIs at any scale Danilo Poccia, Technical Evengelist @danilop danilop
  2. 2. A new, fully managed model InternetMobile apps AWS Lambda functions AWS API Gateway Other AWS services
  3. 3. Managed A new, fully managed model InternetMobile apps AWS Lambda functions AWS API Gateway cache Endpoints on Amazon EC2 Any other publicly accessible endpoint Amazon CloudWatch Amazon CloudFront API Gateway API Gateway Other AWS services AWS Lambda functions
  4. 4. Web API to Lambda Functions Mapping Resource + HTTP Verb ➔ Method
  5. 5. Web API to Lambda Functions Mapping Resource + HTTP Verb ➔ Method /books + GET ➔ GetAllBooks
  6. 6. Web API to Lambda Functions Mapping Resource + HTTP Verb ➔ Method /books + GET ➔ GetAllBooks /books + POST ➔ CreateNewBook
  7. 7. Web API to Lambda Functions Mapping Resource + HTTP Verb ➔ Method /books + GET ➔ GetAllBooks /books + POST ➔ CreateNewBook /books/{id} + GET ➔ GetBookById /books/{id} + PUT ➔ CreateOrUpdateBookById /books/{id} + DELETE ➔ DeleteBookById
  8. 8. Input/output transforms Use Velocity templates to transform data Filter output results • Remove private or unnecessary data • Filter dataset size to improve API performance GET to POST • Read all query string parameters from your GET request, and create a body to make a POST to your back end JSON to XML • Receive JSON input and transform it to XML for your back end • Receive JSON from a Lambda function and transform it to XML
  9. 9. Transform example: JSON to XML API Gateway Back end GET - /sayHello Lambda fn_sayHello /sayHello { “message” : “Hello world” } <xml> <message> Hello world </message> </xml> #set($root = $input.path('$')) <xml> <message> $root.message </message> </xml>
  10. 10. <demo> ... </demo>
  11. 11. Thank you! @danilop danilop

×