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
雲原生時代:從 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
容器內存可觀測性新視角:WorkingSet 與 PageCache 監控
原創
2024-05-16 21:13:38
雲效 Flow 配置備忘
原創
2024-05-30 11:43:23
怎麼使用Stable diffusion中的models
原創
2024-05-28 21:38:55
24小時熱門文章
-
再談23種設計模式(3):行爲型模式(學習筆記)
-
Power Automate Desktop 安裝完,登錄後老是提示one driver 錯誤
-
微前端學習筆記(4):從微前端到微模塊之EMP與hel-micro方案探索
-
微前端學習筆記(1):微前端總體架構概述,從微服務發微
-
985 碩士程序員,空窗 4 個月沒有 Offer!
-
一文搞懂 Spring 循環依賴
-
賽博鬥地主——使用大語言模型扮演Agent智能體玩牌類遊戲。
-
VScode右鍵打開(添加到右鍵)
-
記一次 .NET某工控視覺自動化系統 卡死分析
-
WindowsServer--SQL Server搭建主從同步實現讀寫分離 - 事務性分發