API Gateway Flashcards
What is the API Gateway?
service to publish, maintain, monitor, secure API’s at any scale
Easily create an API that acts as “front door” for applications to access data, business logic, functionality from your back end services on EC2, Lambda, any web application.
What is API Caching?
Reduces number of calls made to your endpoint
Improves latency of requests to your API
API Gateway will look up response from the cache instead of your endpoint
What can API Gateway do?
can throttle requests to mitigate attacks
low cost, efficient
scales easily
Connect it to Cloudwatch to log all requests
What is the Same origin policy?
Web browser allows scripts in first web page to access data in second web page, only if both pages have the same origin
CORS - Cross-Origin Resource Sharing
Method that lets the server relax the Same Origin Policy
Allows resources on a page to be requested from domain outside the domain that first resource was requested from
Enable CORS on API Gateway if you see this, “Origin policy cannot be read at the remote resource”