API Gateway
API Gateway
scale, not only to expose AWS resources like Lambda but integration is triggered, like authentication and integration, like transformations so your clients get an different features and pricing
anything that speaks HTTP.
authorization processing (see Authorizers) or request expected output for the results of your integration. REST - the default and most common type
It's easy to perceive it just as an HTTP mediator between a validation. HTTP - reduced set of features in comparison to REST,
client and an internal AWS service like Lambda, but there's In a nutshell, its built of three major parts but way cheaper and easier to set up
more to explore as it offers a lot of valuable features. Request Flow - everything that happens before your USAGE PLANS WebSockets - for building real-time applications.
destination is called: Authorize, validate & transform PROXY RESOURCE API keys can be used as a method for rate limiting and
Bind different HTTP requests to a single integration.
payload does not match your validation model but not t This adds a layer of protection against flooding and misuse.
/api/v1/customers/88ec6f6f/orders
Example: /api/v1/{proxy+}
any identity provider supporting OAuth2/OpenID.
Will match for exampl
You’re also able to use response templates to construct PROXY INTEGRATION /api/v1/customer RESPONSE HANDLING
payloads that contain detailed errors by using variable
️
API Gateway is also able to forward your request as is to /api/v1/order
If you're not using a proxy integration, you need to define REQUEST VALIDATION
integration responses. Those are the counterpart to our Validating requests before they hit your integration comes
substitution from the context object of your request. a Lambda function via a default mapping template o /api/v1/orders/5aa989ff
integration request in the request flow and transform the with major benefits of reducing the number of invocations
an HTTP endpoint - forwarding your entire request
Integration
Integration
Request Flow
Response Request
• integration latency
containments).
Method
AWS SERVICE PROXY INGERATION
Response Flow
notifications about issues to your favorite channels. API GATEWAY Looking at us-east-1, it is $3.5 vs. $1 per 1m requests,
meaining HTTP gateway is ~71% cheaper.