Why external cache storage is required on AWS Lambda
The filesystem is read-only on AWS Lambda except for /tmp. However, /tmp is not shared across Lambda instances. When scaling or redeploying, new instances start with an empty cache. Use Redis or DynamoDB for shared caching across all instances. DynamoDB is easier to set up (pay per use) while Redis offers faster response times but requires VPC and instance management.