Home icon

Automated JDBC query caching with the AWS Advanced JDBC Wrapper

Database Blog



This article introduces the Remote Query Cache Plugin for the AWS Advanced JDBC Wrapper, which automates query result caching in ElastiCache for Valkey without requiring application rewrites.

  • Plugin intercepts JDBC queries and caches results using SQL hints automatically
  • Supports PostgreSQL, MySQL, and MariaDB with existing JDBC frameworks
  • Use CloudWatch Database Insights to identify high-load SELECT queries for caching
  • Configuration requires adding wrapper dependency, enabling plugin, and prefixing queries with cache hints
  • Plugin manages cache keys, TTL expiration, serialization, and fallback to database automatically
  • Emits metrics to CloudWatch and X-Ray for monitoring cache hit/miss rates
  • Requires encryption in transit (cacheUseSSL=true) and supports IAM authentication

The plugin reduces database load for read-heavy workloads by transparently caching stable result sets with minimal code changes.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Mar 26
2026
The AWS Advanced JDBC Wrapper now supports automatic query caching with Valkey
May 7
2026
AWS Advanced JDBC Wrapper now provides client-side encryption
Aug 18
2025
Demystifying the AWS advanced JDBC wrapper plugins
May 19
2026
A systematic approach to benchmarking SQL processing engines on AWS

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.