'Redisson l2 cache is taking more time than database call

We are using AWS Elasticache with Redis and redisson library. During perf test it was found that hibernate l2 cache is taking ~300ms where as our actual Db calls take ~3ms. from call stack - io.netty.util.concurrent.DefaultPromise.await() method is taking time. It's a spring boot application.

DB, Redis and application is running on same server.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source