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 :
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
CaffeineCache Api介紹以及與Guava Cache性能對比| 京東物流技術團隊
原創
2024-05-17 23:56:43
容器內存可觀測性新視角:WorkingSet 與 PageCache 監控
原創
2024-05-16 21:13:38
SharePoint Online 客製化開發:如何使用CSS更改網站主題背景顏色?
osc_w6noy934
2024-05-14 02:00:35
mysql存量表數據碎片與索引碎片優化
osc_m6gaz63w
2024-05-13 21:34:00
詳解數倉的向量化執行引擎
原創
2024-04-25 10:33:17
RocketMQ 之 IoT 消息解析:物聯網需要什麼樣的消息技術?
原創
2024-04-24 23:40:04
CVE復現之老洞新探(CVE-2021-3156)
原創
2024-05-08 22:52:37
Windows下把ZooKeeper註冊成爲Windows服務,實現開機自啓動
原創
2024-05-08 21:56:27
系統整容紀:責任鏈設計模式的應用實戰(爆燈了,研發工期由45天降爲1天)
原創
2024-04-28 11:17:20
當AI盜用你的臉做直播帶貨?怎麼辦
原創
2024-04-24 23:32:56
「Java開發指南」如何利用MyEclipse啓用Spring DSL?(二)
原創
2024-04-24 11:35:31
網絡TCP
osc_61miaq6u
2024-05-13 22:58:24
意派Epub360丨518國際博物館日H5,每個都大有看頭!
原創
2024-04-25 22:25:00
24小時熱門文章