July 2018
Intermediate to advanced
324 pages
8h 14m
English
The AWS API Gateway provides a feature to add caching for your API endpoint responses. It will help to reduce the network latency and return cached responses to the user without hitting the AWS Lambda function.
Zappa has the ability to configure caching on the AWS API Gateway; you don't need to configure the caching manually from the AWS web console. The following is the configuration needed to add in the zappa_settings.json file to enable caching on the API Gateway.
File—zappa_settings.json:
{ "dev": { "app_function": "resources.api", "aws_region": "ap-south-1", "profile_name": "default", "project_name": "chapter-7", "runtime": "python3.6", "s3_bucket": "zappa-0edixmwpd", "remote_env": "s3://book-configs/chapter-7-config.json", ...Read now
Unlock full access