eduardo3g / twitter

A serverless Twitter built with some cool stuff, such as the Serverless Framework, AppSync (GraphQL), Lambda, DynamoDB, Cognito, Kinesis Firehose, and Algolia ☁️
MIT License
42 stars 6 forks source link

feat: configure per-resolver cache instance #7

Closed eduardo3g closed 3 years ago

eduardo3g commented 3 years ago

Configured a managed cache layer to the AppSync API. In this specific configuration, it'll add a T2_LARGE instance to the production environment, and no instances at all to other stages in order to reduce costs.

To add a caching layer per stage, simply add a new stage under custom.appSyncCaching on the serverless.yml file.