Conference India 2026

When Caches Lie: Solving Transactional Integrity and Distributed Race Conditions in Spring Boot

Conference India 2026

November 25–26, 2026

Bengaluru, India

Get tickets

Joining remotely?

Watch live with Pro

What this session covers

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.

Conference India 2026

Related talks

Open session

How We Cut Our API's p99 Latency from Minutes to Under a Second

  • Deepak Agrawal

    Atlassian

    Principal Software Engineer

Open session

Spring Boot Beyond the Defaults: A Practical Framework for Overriding Autoconfiguration

  • Pradeep Kumar

    Classpath Consulting

    Freelancer Solution Architect

Open session

From Spring Boot to Spring AI: A Java Developer's Journey into Agentic Systems

  • Varsha Das

    AWS

    Developer Advocate

Open session

Building a Semantic Cache for Agentic AI: Practical workshop on reducing cost & latency

  • Bhavana Giri

    Redis

    Developer Advocate

All sessions at this congress