@shinyaz

ElastiCache Serverless connections survive 10 minutes of idle

1 min read

The official documentation on server-side idle timeout for ElastiCache states "This setting is not available on serverless caches" — meaning when Serverless disconnects idle connections is undisclosed.

Testing with the JDBC Wrapper's Remote Query Cache Plugin, I ran queries for 5 minutes, idled for 10 minutes, then resumed. No timeout recurred. The post-idle phase hit the cache on all 30 queries (max 21ms).

At least for 10-minute idle periods, periodic keepalive queries are unnecessary. Behavior with 30-60 minute idle periods remains untested.

Share this post

Shinya Tahara

Shinya Tahara

Solutions Architect @ AWS

I'm a Solutions Architect at AWS, providing technical guidance primarily to financial industry customers. I share learnings about cloud architecture and AI/ML on this site.The views and opinions expressed on this site are my own and do not represent the official positions of my employer.