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?
边栏推荐
- 2022 CSP-J1 CSP-S1 Round 1 Preliminary Competition Registration Guide
- RTL8762DK WDG (six)
- gateway gateway cross domain
- 开源项目站点必备&交流区功能
- RTL8762DK uses DebugAnalyzer (four)
- Browser download shortcut to desktop (PWA)
- [Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]
- Js replication
- HCIP(15)
- MYSQL query interception optimization analysis
猜你喜欢
Ordinary users cannot access HGFS directory
带wiringPi库在unbutu 编译 并且在树莓派运行
【分层强化学习】HIRO:Data-Efficient Hierarchical Reinforcement Learning
MYSQL Index Analysis
【元胞自动机】基于matlab界面聚合元胞自动机模拟【含Matlab源码 2004期】
Beijing suddenly announced that yuan universe big news
树莓派 的 arm 版的 gcc 安装 和环境变量的配置
Which interpolation is better for opencv to zoom in and out??
Game Security 03: A Simple Explanation of Buffer Overflow Attacks
Solve the problem that when IDEA creates a new file by default, right-click, new, there is no XML file
随机推荐
Nmap 操作手册 - 完整版
Browser download shortcut to desktop (PWA)
ROS2 series of knowledge (4): understand the concept of [service]
在打开MYSQL表时,有的可以显示编辑,有的没有,如何设置。
date command
一个service层需要调用另两个service层获取数据,并组装成最后的数据,数据都是list,缓存如何设计?
After specifying set 'execution.savepoint.path', restart flinksql and report this error
Euler system (euleros): upgrade Mysql
C string array reverse
How to get started with YOLO?How to implement your own training set?
The kernel of the decompression process steps
Key Points Estimation and Point Instance
Summary of MVCC
SC7A20 (Silan Micro-Accelerometer) Example
IDEA修改注释字体
sqlserver无法远程连接
初出茅庐的小李第112篇博客项目笔记之机智云智能浇花器实战(1)-基础Demo实现
win10 固定本机IP
By CSDN, torn
opencv 缩小放大用哪种插值更好??