The scenario is as follows: the A-service layer needs to call the B-service layer to obtain a data B-list, and then use the obtained B-list to call the C-sevice layer to obtain the data C-list, and finally assemble the B-listGet the A-list with the data of the C-list and return it.
Question:
1. Should the A-list be added to the redis cache, or should the B-list and C-list be added to the cache?
2. With the increase of cache keys, when an entity data is modified, it is necessary to consider the invalidation of the cached keys involved, which is a headache. It is necessary to add a new key invalidation code in the updated place, andI have to invalidate multiple keys. Do you have this kind of trouble?
Just started work, looking for answers!
当前位置:网站首页>One service layer needs to call the other two service layers to obtain data and assemble it into the final data. The data is all lists. How to design the cache?
One service layer needs to call the other two service layers to obtain data and assemble it into the final data. The data is all lists. How to design the cache?
2022-08-01 02:36:00 【segmentfault】
Other Answer 1:
Why not make cache through in B-service and C-sevice?
Why at A-service?What is the point of doing?Where are the bottlenecks?
边栏推荐
- Four ways the Metaverse is changing the way humans work
- [cellular automata] based on matlab interface aggregation cellular automata simulation [including Matlab source code 2004]
- The fledgling Xiao Li's 114th blog project notes: Wisdom cloud intelligent flower watering device combat (3) - basic Demo implementation
- How to get started with YOLO?How to implement your own training set?
- gateway gateway cross domain
- 【数据分析】基于matlab GUI学生成绩管理系统【含Matlab源码 1981期】
- How to download the Keil package
- Fat interface in JQESAP system
- HCIP(14)
- 787. Merge Sort
猜你喜欢
Modern Enterprise Architecture Framework 1
Summary of JVM interview questions (continuously updated)
HCIP(14)
The fledgling Xiao Li's 113th blog project notes: Wisdom cloud smart flower watering device combat (2) - basic Demo implementation
Solve the problem that Excel opens very slowly after installing MySQL
Which interpolation is better for opencv to zoom in and out??
Data Middle Office Construction (VII): Data Asset Management
SC7A20 (Silan Micro-Accelerometer) Example
项目越写越大,我是这样做拆分的
【uniCloud】云对象的应用与提升
随机推荐
【元胞自动机】基于matlab界面聚合元胞自动机模拟【含Matlab源码 2004期】
YOLO怎么入门?怎么实现自己的训练集?
七月集训(第31天) —— 状态压缩
What practical projects can machine learning beginners learn?
手写二叉查找树及测试
IDEA modifies the annotation font
Replacing the Raspberry Pi Kernel
Four ways the Metaverse is changing the way humans work
leetcode: 1562. Find latest grouping of size M [simulation + endpoint record + range merge]
787. 归并排序
Device tree - conversion from dtb format to struct device node structure
指定set 'execution.savepoint.path'后,重启flinksql报这个错是啥
纽约大学等 | TM-Vec:用于快速同源检测和比对的模版建模向量
IDEA无法识别module(module右下角没有蓝色小方块)
Fat interface in JQESAP system
Key Points Estimation and Point Instance
ARM 交叉编译
带wiringPi库在unbutu 编译 并且在树莓派运行
MYSQL transactions
Inheritance Considerations