<< ---------------------------------------------------------------- >>
--- Last Modified: $= dv.current().file.mtime
API Gateway
<< ---------------------------------------------------------------- >>
API Gateway: program that sits between a single entry point and multiple backends. Allows for throttling, logging, routing logic or formatting of the request and response
Amazon API Gateway
is a solution for creating secure APIs in your cloud environment at any scale.
Supports three types of APIs
- Rest API(API Gateway V1)
- complete control over req, res
- most feature rich
- higher costs
- both private and public api options
- you can import Open API 3 files when creating your API
- HTTP API(API Gateway V2)
- low latency
- simpler feature set
- low costs
- only public APIs
- WebSockets API
- persistent connections for real-time use cases such as chat applications or dashboards
REST vs HTTP API Gateways

API Gateway REST Components
- API:
- Resources (routes)
- Methods (GET, POST)
- Integration
- lambda
- http
- aws servcies
- vpc link
- etc
- Resources (routes)
API Gateway HTTP Components
- API:
- Route
- Respresnt an endpoint (basically both the resource and the method together(post /hello))
- integrations
- more limited than REST
- VPC link
- Stages
- versions of API
- Route