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?
边栏推荐
猜你喜欢

What practical projects can machine learning beginners learn?

IDEA修改注释字体

MYSQL Classic Interview Questions

Compiled on unbutu with wiringPi library and run on Raspberry Pi

IDEA调试

【数据分析】基于matlab GUI学生成绩管理系统【含Matlab源码 1981期】

RTL8762DK UART (two)

树莓派 的 arm 版的 gcc 安装 和环境变量的配置

Summary of MVCC

Raspberry pie arm version of GCC installed configuration and environment variables
随机推荐
Completely closed Chrome updated and in the top right corner of the tip
ARM cross compilation
Unity3D study notes 10 - texture array
leetcode: 1562. Find latest grouping of size M [simulation + endpoint record + range merge]
Chinese version of Pylint inspection rules
The fledgling Xiao Li's 112th blog project notes: Wisdom cloud intelligent flower watering device actual combat (1) - basic Demo implementation
Which interpolation is better for opencv to zoom in and out??
北京突然宣布,元宇宙重大消息
Nmap 操作手册 - 完整版
初出茅庐的小李第114篇博客项目笔记之机智云智能浇花器实战(3)-基础Demo实现
date command
Basic implementation of vector
When opening a MYSQL table, some can display editing, some do not, how to set.
Fat interface in JQESAP system
测试
High dimensional Gaussian distribution basics
HCIP(15)
Academicians of the two academies speak bluntly: Don't be superstitious about academicians
The fledgling Xiao Li's 114th blog project notes: Wisdom cloud intelligent flower watering device combat (3) - basic Demo implementation
Nmap manuals - the full version