The concurrenty solution for cache based on transaction (Draft)
Condition:
On Service layer, while a transaction around a service method rollbacked , in the method, it occurs that the data cached is not concurrent with DB.For example, use ehcache , a method , is contained by entity(POJO) ,setXXX(...) happened as well as the data in cache is changed ,so that it is different from DB~~ How to resolve it?
Solution :
On Service layer, while a transaction around a service method rollbacked , in the method, it occurs that the data cached is not concurrent with DB.For example, use ehcache , a method , is contained by entity(POJO) ,setXXX(...) happened as well as the data in cache is changed ,so that it is different from DB~~ How to resolve it?
Solution :
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
探讨篇(二):分层架构的艺术 - 打造合理且高效的架构体系
原創
2024-05-20 23:55:42
ClickHouse内幕(2)基础数据结构
原創
2024-06-07 23:54:50
云原生时代:从 Jenkins 到 Argo Workflows,构建高效 CI Pipeline
原創
2024-06-05 21:13:46
LLVM技术在GaussDB等数据库中的应用
原創
2024-06-03 10:59:24
spark udtf自定义函数 spark explode函数
xiaomin0322
2024-06-01 00:06:20
本地缓存Ehcache的应用实践
京東雲開發者
2024-05-31 23:55:56
记一次攻防演练中的若依(thymeleaf 模板注入)getshell
原創
2024-05-27 23:16:06
浅析MySQL 8.0直方图原理
原創
2024-05-27 10:58:41
Spring项目中使用NIO并行调用http接口指南
原創
2024-05-23 11:10:25
linux加载动态库失败
mskk
2024-05-21 00:52:55
MySQL全文索引源码剖析之Insert语句执行过程
原創
2024-05-20 10:59:15
CaffeineCache Api介绍以及与Guava Cache性能对比| 京东物流技术团队
原創
2024-05-17 23:56:43
云效 Flow 配置备忘
原創
2024-05-30 11:43:23
怎么使用Stable diffusion中的models
原創
2024-05-28 21:38:55
24小時熱門文章