> Markdown version of [/events/conference-india-2026/sessions/2064-when-caches-lie](https://www.wearedevelopers.com/events/conference-india-2026/sessions/2064-when-caches-lie). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # When Caches Lie: Solving Transactional Integrity and Distributed Race Conditions in Spring Boot - **Event:** Conference India 2026 ## Description In an enterprise ecosystem, performance and data consistency are often at war. We decorate our Spring Boot services with @Transactional to ensure ACID compliance, and layer on @Cacheable or @CacheEvict to protect our databases from traffic spikes. On paper, it is a perfect marriage. In production, it can become a silent nightmare. Have you ever seen a cache update or evict successfully, only for the underlying database transaction to roll back a millisecond later due to a late constraint violation? Or worse, a race condition where a cache is populated with stale data because the read occurred before the writing transaction fully committed? These are not edge cases—they are systemic architectural flaws rooted in how Spring's AOP (Aspect-Oriented Programming) proxy chain orders interceptors by default. This deeply technical, code-centric session will pull back the rug on the Spring framework’s proxy mechanism. We will explore exactly why the transaction manager and cache abstraction frequently fall out of sync. Going beyond single-instance framework boundaries, we will dive into distributed realities. When multiple application nodes race to update a shared cache like Redis, standard framework abstractions fall short. You will see how to leverage atomic Lua scripting embedded within the cache layer to completely eliminate distributed race conditions and check-and-set bugs, ensuring your cache updates are as bulletproof as your database transactions. Come prepared for minimal slides and maximum code. We will intentionally break a live application on stage and systematically refactor it to achieve absolute cache-transaction harmony. ## Speaker ### [Shuchita Prasad](https://www.wearedevelopers.com/@shuchita-prasad) Senior Lead Engineer at JPMorgan ## Related talks at this congress - [How We Cut Our API's p99 Latency from Minutes to Under a Second](https://www.wearedevelopers.com/events/conference-india-2026/sessions/1987-how-we-cut-our-api-s) — Deepak Agrawal - [Spring Boot Beyond the Defaults: A Practical Framework for Overriding Autoconfiguration](https://www.wearedevelopers.com/events/conference-india-2026/sessions/2058-spring-boot-beyond) — Pradeep Kumar - [From Spring Boot to Spring AI: A Java Developer's Journey into Agentic Systems](https://www.wearedevelopers.com/events/conference-india-2026/sessions/2050-from-spring-boot-to) — Varsha Das - [Building a Semantic Cache for Agentic AI: Practical workshop on reducing cost & latency](https://www.wearedevelopers.com/events/conference-india-2026/sessions/2044-building-a-semantic) — Bhavana Giri ## Watch remotely Can’t make it to Bengaluru? Watch this session live with Pro. You also get: - All full videos, bookmarks, and playlists - World Congress livestreams [See pricing](https://www.wearedevelopers.com/pricing) ## Links - [Get tickets](https://www.wearedevelopers.com/conference-india/tickets)