Browsers are
difficult
Please wait, loading your map...
AWS API Gateway
purpose
acts as an entry point for our API
segregate cross cutting concerns like security
features
maintainability
versioning of API
what is this?
it is ability to run multiple versions of
API at the same time
when we start working on API we perform
multiple back and forth to same API. it
provide facility to run multiple versions at
the same time
benefits
With this approach customer can still use
version v1 and when they are sure then
they can start using version two
API monitoring
it enables monitoring based on latency, Errors, number of calls
These calls can further filtered based on stage,HTTP method
and date range
protocol conversion
it help us to avoid writing multiple micro services just for
different protocol
If our backend is not ready for new protocols then API
gateway can handle these kind of requests.
Routing
based on
A/B testing
canary release
help us to do early testing of feature
security
throttling API
with this feature it will limit number of requests per seconds to
API
if API receive more requests then client will receive HTTP 429 error
enable API Key
what is this?
this API key can be sent in http header
it enable us to restrict clients based on their key
when we enable API key then each client can have their own key.
what it is not?
it is not used for authorization.anyone who has this key can send
request to API Gateway
other benefits
help us to track usage of API per client
enable/disable access to client for usage of API
integration with AWS Web application firewall passible
monitoring/logging
cloudwatch metrics
latency
cache hit count
cache miss count
integration latency
4xx
5xx
count
AWS Xray
trace request
AWS cloud trail
track action taken by
users
roles
other aws service
aws config
performance
caching of API
Caching of API enable us to reduce number of requests and improve performance
Can range from 0.5 GB till 237 GB
important notes
if our API is dynamic it is not useful. but try to keep minimal time
for cache
Additional bill will be charged
consolidate multiple
calls with Adapter
with this feature it help avoid giving multiple API calls
API gateway can consolidate multiple API calls in single call
similar feature possible with facebook GraphQL framework
types
edge-optimized
designed for globally distributed clients.
utilize cloud front distribution
regional
designed for clients in same region
private
accessible inside VPC or resources connected to VPC
backend services
lambda function
connectivity type
proxy
direct integration
Http(s)
type
inside AWS
outside of AWS
AWS service endpoint
VPC link
connect to resources placed inside VPC with the
help of ELB or NLB
request processing
request
by
modeling
transformation
validation
helpful to reduce load on backend service
response
transformation
add custom error messages instead of default
error messages
cost
important factors
number of requests per month
data out charges
caching charges
as we are using more and more resources this price further get reduced
https://
aws.amazon.com/de/
api-gateway/pricing/
can track
useful getting alerts when 4xx,5xx more
than specific value during time
access log
contains info like
callers IP address
request time
request HTTP method
request URL
response HTTP code
×
Created using
MindMup.com