ks888 / LambStatus

[Maintenance mode] Serverless Status Page System
https://lambstatus.github.io
Apache License 2.0
1.3k stars 119 forks source link

Set CloudFront in front of API gateway #63

Closed ks888 closed 6 years ago

ks888 commented 6 years ago

So far the clients directly access the API gateway. It works, but the API gateway and corresponding lambda functions often do same computations again and again, which generate useless costs. If the API is public which can be safely shared among users, the responses should be cached.

The API gateway implements the cache mechanism but it's costly. So I think to set the CloudFront in front of API gateway and use the cache mechanism of CloudFront is the most cost effective.