SlideShare une entreprise Scribd logo
1  sur  18
AWS API
GATEWAY
D E C E M B E R 1 5 , 2 0 1 6
M U H A M M E D YA L Ç I N
CONTENT
• WHAT IS API GATEWAY?
• BENEFITS
• RESOURCES AND METHODS
• CREATE NEW API
• CREATE RESOURCE
• CREATE METHOD
• DEPLOY API
• PRICING « US WEST (OREGON) »
WHAT IS API GATEWAY?
• Amazon API Gateway helps developers to create and manage APIs to back-end
systems running on Amazon EC2, AWS Lambda or any pubicly addressable web
service.
• With Amazon API Gateway, you can generate custom client SDKs for your APIs, to
connect your back-end systems to mobile, web and server applications or services.
• The API you create in API Gateway consists of a set of resources and methods.
BENEFITS
• Low-cost and efficient
• Performance at any scale
• Easily monitor API Activity
• Streamline API Development
• Flexible Security Controls
• Create RESTful Endpoints for Existing Services
• Run Your APIs Without Servers
RESOURCES AND METHODS
• A resource is a logical entity that can be accessed through a resource path using the API.
• A resource can have one or more operations that are defined by appropriate HTTP verbs such as GET,
POST, and DELETE.
• A combination of a resource path and an operation identify a method in the API.
• Each method corresponds to a REST API request submitted by the user of your API and the
corresponding response returned to the user.
• API Gateway integrates the method with a targeted back end by mapping the method request to an
integration request acceptable by the back end and then mapping the integration response from the
back end to the method response returned to the user.
• As an API developer, you can configure how methods are mapped to integrations and vice versa by
stipulating what parameters to use and specifying mapping templates to transform payloads of given
data models.
CREATE NEW API
CREATE RESOURCE
• Resources in API Gateway is a API controller mechanism.
• Click Actions and select Create Resource.
CREATE METHOD
• Click Actions and select Create Method.
CON’T
• Methods can be GET, DELETE, UPDATE, POST
etc.
• Select an integration type. We will choose
Lambda Function.
• Select a lambda region. (us-west-2 etc.)
• Enter an existing lambda function from auto-
complete textbox.
CON’T
CON’T
• Click Integration Request. Click Body Mapping Templates. Add mapping templates.
GET method can have a parameters like a query string. Besides POST requests send
data from body part likewise.
• GET POST
DEPLOY API
• Click Action and select Deploy API. Click [New Stage]. Deploy new stage.
CON’T
• You can see get user url. Go and run it.
PRICING « US WEST (OREGON) »
• API Calls
– $3.50 per million API calls received, plus the cost of data transfer out, in gigabytes.
• Data Transfer Costs
– $0.09/GB for the first 10 TB
– $0.085/GB for the next 40 TB
– $0.07/GB for the next 100 TB
– $0.05/GB for the next 350 TB
CON’T
• Caching
CON’T
• Pricing Example:
– An API that receives five million API calls per month, with each API call returning
responses of 3 kilobytes (KB) in size with no caching.
– Example below reflects pricing for US East, US West, EU (Ireland)
Amazon API Gateway API call charges 5 million * $3.50/million = $17.50
Total size of data transfers 3 KB * 5 million= 15 million/KB = 14.3 GB
Amazon API Gateway data transfer
charges
14.3 GB * $0.09 = $1.29
Total Amazon API Gateway charges $17.50 + $1.29 = $18.79
CON’T
• Pricing Example with Caching Required (US East, US West, EU (Ireland))
– If your API needs 1.5 GB of cache for its data, you can provision a 1.6 GB cache at $0.038/hr.
– $0.038 * 24 = $0.912/day
REFERENCES
• https://aws.amazon.com/api-gateway/
• https://aws.amazon.com/api-gateway/pricing/
• http://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html
• https://aws.amazon.com/blogs/aws/amazon-api-gateway-build-and-run-scalable-
application-backends/

Contenu connexe

Tendances

Tendances (20)

Deep dive into AWS IAM
Deep dive into AWS IAMDeep dive into AWS IAM
Deep dive into AWS IAM
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
AWS Application Migration Service-Hands-On Guide
AWS Application Migration Service-Hands-On GuideAWS Application Migration Service-Hands-On Guide
AWS Application Migration Service-Hands-On Guide
 
Amazon EKS - Elastic Container Service for Kubernetes
Amazon EKS - Elastic Container Service for KubernetesAmazon EKS - Elastic Container Service for Kubernetes
Amazon EKS - Elastic Container Service for Kubernetes
 
AWS Lambda
AWS LambdaAWS Lambda
AWS Lambda
 
Getting Started on Amazon EKS
Getting Started on Amazon EKSGetting Started on Amazon EKS
Getting Started on Amazon EKS
 
Introduction to AWS IAM
Introduction to AWS IAMIntroduction to AWS IAM
Introduction to AWS IAM
 
AWS Lambda
AWS LambdaAWS Lambda
AWS Lambda
 
Deep Dive on AWS Lambda
Deep Dive on AWS LambdaDeep Dive on AWS Lambda
Deep Dive on AWS Lambda
 
Amazon ECS
Amazon ECSAmazon ECS
Amazon ECS
 
CI/CD pipelines on AWS - Builders Day Israel
CI/CD pipelines on AWS - Builders Day IsraelCI/CD pipelines on AWS - Builders Day Israel
CI/CD pipelines on AWS - Builders Day Israel
 
Amazon API Gateway
Amazon API GatewayAmazon API Gateway
Amazon API Gateway
 
IAM Deep Dive - Custom IAM Policies with Conditions
IAM Deep Dive - Custom IAM Policies with ConditionsIAM Deep Dive - Custom IAM Policies with Conditions
IAM Deep Dive - Custom IAM Policies with Conditions
 
Amazon API Gateway and AWS Lambda: Better Together
Amazon API Gateway and AWS Lambda: Better TogetherAmazon API Gateway and AWS Lambda: Better Together
Amazon API Gateway and AWS Lambda: Better Together
 
Serverless Architectures.pdf
Serverless Architectures.pdfServerless Architectures.pdf
Serverless Architectures.pdf
 
Introduction to Amazon EKS
Introduction to Amazon EKSIntroduction to Amazon EKS
Introduction to Amazon EKS
 
AWS Containers Day.pdf
AWS Containers Day.pdfAWS Containers Day.pdf
AWS Containers Day.pdf
 
Build and Manage Your APIs with Amazon API Gateway
Build and Manage Your APIs with Amazon API GatewayBuild and Manage Your APIs with Amazon API Gateway
Build and Manage Your APIs with Amazon API Gateway
 
AWS Amplify
AWS AmplifyAWS Amplify
AWS Amplify
 
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
 

En vedette

En vedette (11)

AWS Lambda
AWS LambdaAWS Lambda
AWS Lambda
 
Webrtc and tokbox
Webrtc and tokboxWebrtc and tokbox
Webrtc and tokbox
 
API Gateway report
API Gateway reportAPI Gateway report
API Gateway report
 
Socketio
SocketioSocketio
Socketio
 
AWS re:Invent 2016: What’s New with AWS Lambda (SVR202)
AWS re:Invent 2016: What’s New with AWS Lambda (SVR202)AWS re:Invent 2016: What’s New with AWS Lambda (SVR202)
AWS re:Invent 2016: What’s New with AWS Lambda (SVR202)
 
Api gateway : To be or not to be
Api gateway : To be or not to beApi gateway : To be or not to be
Api gateway : To be or not to be
 
AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)
AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)
AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)
 
AWS re:Invent 2016: From Monolithic to Microservices: Evolving Architecture P...
AWS re:Invent 2016: From Monolithic to Microservices: Evolving Architecture P...AWS re:Invent 2016: From Monolithic to Microservices: Evolving Architecture P...
AWS re:Invent 2016: From Monolithic to Microservices: Evolving Architecture P...
 
AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...
AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...
AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
 

Similaire à AWS API Gateway

Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017
Amazon Web Services
 

Similaire à AWS API Gateway (20)

Build and Manage Your APIs with Amazon API Gateway
Build and Manage Your APIs with Amazon API GatewayBuild and Manage Your APIs with Amazon API Gateway
Build and Manage Your APIs with Amazon API Gateway
 
API Documentation.pptx
API Documentation.pptxAPI Documentation.pptx
API Documentation.pptx
 
API Documentation.pptx
API Documentation.pptxAPI Documentation.pptx
API Documentation.pptx
 
Operating your Production API
Operating your Production APIOperating your Production API
Operating your Production API
 
Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017
 
Building Serverless Web Applications - DevDay Los Angeles 2017
Building Serverless Web Applications - DevDay Los Angeles 2017Building Serverless Web Applications - DevDay Los Angeles 2017
Building Serverless Web Applications - DevDay Los Angeles 2017
 
Operating Your Production API
Operating Your Production APIOperating Your Production API
Operating Your Production API
 
IBM Integration Bus and REST APIs - Sanjay Nagchowdhury
IBM Integration Bus and REST APIs - Sanjay NagchowdhuryIBM Integration Bus and REST APIs - Sanjay Nagchowdhury
IBM Integration Bus and REST APIs - Sanjay Nagchowdhury
 
Raleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshopRaleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshop
 
How to design effective APIs
How to design effective APIsHow to design effective APIs
How to design effective APIs
 
How to Build a Big Data Application: Serverless Edition
How to Build a Big Data Application: Serverless EditionHow to Build a Big Data Application: Serverless Edition
How to Build a Big Data Application: Serverless Edition
 
AWS Summit Barcelona 2015 - Introducing Amazon API Gateway
AWS Summit Barcelona 2015 - Introducing Amazon API GatewayAWS Summit Barcelona 2015 - Introducing Amazon API Gateway
AWS Summit Barcelona 2015 - Introducing Amazon API Gateway
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
Getting Started with AWS Lambda & Serverless Computing
Getting Started with AWS Lambda & Serverless ComputingGetting Started with AWS Lambda & Serverless Computing
Getting Started with AWS Lambda & Serverless Computing
 
SRV418 Deep Dive on Accelerating Content, APIs, and Applications with Amazon ...
SRV418 Deep Dive on Accelerating Content, APIs, and Applications with Amazon ...SRV418 Deep Dive on Accelerating Content, APIs, and Applications with Amazon ...
SRV418 Deep Dive on Accelerating Content, APIs, and Applications with Amazon ...
 
How to Build a Big Data Application: Serverless Edition
How to Build a Big Data Application: Serverless EditionHow to Build a Big Data Application: Serverless Edition
How to Build a Big Data Application: Serverless Edition
 
Building Serverless Backends with AWS Lambda and Amazon API Gateway
Building Serverless Backends with AWS Lambda and Amazon API GatewayBuilding Serverless Backends with AWS Lambda and Amazon API Gateway
Building Serverless Backends with AWS Lambda and Amazon API Gateway
 
The ultimate api checklist by Blendr.io
The ultimate api checklist by Blendr.ioThe ultimate api checklist by Blendr.io
The ultimate api checklist by Blendr.io
 
AWS Lambda Function with Kotlin
AWS Lambda Function with KotlinAWS Lambda Function with Kotlin
AWS Lambda Function with Kotlin
 
AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...
AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...
AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...
 

Dernier

Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 

Dernier (20)

WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 

AWS API Gateway

  • 1. AWS API GATEWAY D E C E M B E R 1 5 , 2 0 1 6 M U H A M M E D YA L Ç I N
  • 2. CONTENT • WHAT IS API GATEWAY? • BENEFITS • RESOURCES AND METHODS • CREATE NEW API • CREATE RESOURCE • CREATE METHOD • DEPLOY API • PRICING « US WEST (OREGON) »
  • 3. WHAT IS API GATEWAY? • Amazon API Gateway helps developers to create and manage APIs to back-end systems running on Amazon EC2, AWS Lambda or any pubicly addressable web service. • With Amazon API Gateway, you can generate custom client SDKs for your APIs, to connect your back-end systems to mobile, web and server applications or services. • The API you create in API Gateway consists of a set of resources and methods.
  • 4. BENEFITS • Low-cost and efficient • Performance at any scale • Easily monitor API Activity • Streamline API Development • Flexible Security Controls • Create RESTful Endpoints for Existing Services • Run Your APIs Without Servers
  • 5. RESOURCES AND METHODS • A resource is a logical entity that can be accessed through a resource path using the API. • A resource can have one or more operations that are defined by appropriate HTTP verbs such as GET, POST, and DELETE. • A combination of a resource path and an operation identify a method in the API. • Each method corresponds to a REST API request submitted by the user of your API and the corresponding response returned to the user. • API Gateway integrates the method with a targeted back end by mapping the method request to an integration request acceptable by the back end and then mapping the integration response from the back end to the method response returned to the user. • As an API developer, you can configure how methods are mapped to integrations and vice versa by stipulating what parameters to use and specifying mapping templates to transform payloads of given data models.
  • 7. CREATE RESOURCE • Resources in API Gateway is a API controller mechanism. • Click Actions and select Create Resource.
  • 8. CREATE METHOD • Click Actions and select Create Method.
  • 9. CON’T • Methods can be GET, DELETE, UPDATE, POST etc. • Select an integration type. We will choose Lambda Function. • Select a lambda region. (us-west-2 etc.) • Enter an existing lambda function from auto- complete textbox.
  • 11. CON’T • Click Integration Request. Click Body Mapping Templates. Add mapping templates. GET method can have a parameters like a query string. Besides POST requests send data from body part likewise. • GET POST
  • 12. DEPLOY API • Click Action and select Deploy API. Click [New Stage]. Deploy new stage.
  • 13. CON’T • You can see get user url. Go and run it.
  • 14. PRICING « US WEST (OREGON) » • API Calls – $3.50 per million API calls received, plus the cost of data transfer out, in gigabytes. • Data Transfer Costs – $0.09/GB for the first 10 TB – $0.085/GB for the next 40 TB – $0.07/GB for the next 100 TB – $0.05/GB for the next 350 TB
  • 16. CON’T • Pricing Example: – An API that receives five million API calls per month, with each API call returning responses of 3 kilobytes (KB) in size with no caching. – Example below reflects pricing for US East, US West, EU (Ireland) Amazon API Gateway API call charges 5 million * $3.50/million = $17.50 Total size of data transfers 3 KB * 5 million= 15 million/KB = 14.3 GB Amazon API Gateway data transfer charges 14.3 GB * $0.09 = $1.29 Total Amazon API Gateway charges $17.50 + $1.29 = $18.79
  • 17. CON’T • Pricing Example with Caching Required (US East, US West, EU (Ireland)) – If your API needs 1.5 GB of cache for its data, you can provision a 1.6 GB cache at $0.038/hr. – $0.038 * 24 = $0.912/day
  • 18. REFERENCES • https://aws.amazon.com/api-gateway/ • https://aws.amazon.com/api-gateway/pricing/ • http://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html • https://aws.amazon.com/blogs/aws/amazon-api-gateway-build-and-run-scalable- application-backends/