Read-through cache on a product API

SVG
Read-through cache on a product API. Sequence diagram with 5 participants (Mobile app, Amazon API Gateway, AWS Lambda, Amazon ElastiCache, Amazon DynamoDB) and 11 messages. 1. Mobile app to Amazon API Gateway (GET /products/42); 2. Amazon API Gateway to itself (verify JWT, rate limit); 3. Amazon API Gateway to AWS Lambda (getProduct(42)); 4. AWS Lambda to Amazon ElastiCache (GET product:42); 5. Amazon ElastiCache to AWS Lambda (product JSON); 6. Amazon ElastiCache to AWS Lambda (nil); 7. AWS Lambda to Amazon DynamoDB (GetItem(id = 42)); 8. Amazon DynamoDB to AWS Lambda (product item); 9. AWS Lambda to Amazon ElastiCache (SET product:42 EX 300); 10. AWS Lambda to Amazon API Gateway (200 product); 11. Amazon API Gateway to Mobile app (200 product (max-age 60)). Fragments: alt [cache hit] over messages 5 to 9, else [cache miss] from 6.
drag to pan, scroll or pinch to zoom