---
title: "Discussion on \"Redis Cache-Aside in Spring Boot: Measured Latency and Stampede Fixes\" | Hashnode"
description: "Discussion on \"Redis Cache-Aside in Spring Boot: Measured Latency and Stampede Fixes\". A cache hit took 2.24 ms vs 53.54 ms, yet 100 concurrent misses made 100 DB reads, even with @Cacheable(sync = true). Single flight and a Redis lock fixed it, measured on real Redis."
url: "https://hashnode.com/posts/spring-boot-redis-cache-aside-stampede/6af6dc6dcc982b315031a222"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Redis Cache-Aside in Spring Boot: Measured Latency and Stampede Fixes](https://gowthammuthuvel.hashnode.dev/spring-boot-redis-cache-aside-stampede?utm_source=hashnode&utm_medium=feed)

A cache hit took 2.24 ms vs 53.54 ms, yet 100 concurrent misses made 100 DB reads, even with @Cacheable(sync = true). Single flight and a Redis lock fixed it, measured on real Redis.

11h ago · 32 min read · gowthammuthuvel.hashnode.dev  
Read the article

-   [#redis](https://hashnode.com/tag/redis)
-   [#spring-boot](https://hashnode.com/tag/spring-boot)
-   [#caching](https://hashnode.com/tag/caching)
-   [#java](https://hashnode.com/tag/java)
-   [#backend](https://hashnode.com/tag/backend)

## Written by

[Gowtham Muthuvel](https://hashnode.com/@GowthamMuthuvel)

@GowthamMuthuvel

  
[View profile](https://hashnode.com/@GowthamMuthuvel)

Full-stack developer | Java, Spring Boot, React | Senior Backend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
