@shinyaz

ElastiCache Serverless initial latency is documented by AWS

1 min read

When I hit slow initial connections with ElastiCache Serverless, I thought it might be a bug. Turns out it's documented in the official troubleshooting guide under "Reuse connections":

Initiating the connection (including authenticating the connection, if configured) takes time so the latency of the first request is higher than typical. Requests over an already initialized connection deliver ElastiCache's consistent low latency.

AWS explicitly acknowledges that the first request is slower and recommends connection pooling or reusing existing connections.

In my testing with the JDBC Wrapper's Remote Query Cache Plugin, the Serverless initial connection took ~2.5-4 seconds, exceeding the plugin's internal timeout (2 seconds) and causing a TimeoutException. A warmup connection that pre-completes the TLS handshake avoids this.

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.