当前位置:网站首页>How redis solves cache avalanche, breakdown and penetration problems
How redis solves cache avalanche, breakdown and penetration problems
2022-06-28 07:55:00 【star++】
summary
For avalanches 、 breakdown 、 Penetration problem , The premise is that in the case of high concurrency , If your scene traffic is mysql Within the bearing range of the database , Then you don't need to care about these issues . You just make sure you use the cache , Ensure the consistency between cache and database data . So today we are talking about high traffic , How to deal with some common problems in using cache .
Cache avalanche
background : Massive cache expires at the same time , Directly access the database to refresh the cached data , More visits than mysql Concurrency threshold , Lead to mysql Long-term
No response , Lead to dependence mysql Services are unavailable for a long time , No response , Service timeout .
Solution :
1. Stagger cache expiration time , After setting the expiration time for business satisfaction , Add a random number of expiration time
2. Adopt service degradation , Core business allows access to 边栏推荐
- Software design of power control board
- Section Xi. Axi of zynq_ Use of DMA
- Rediscluster cluster mode capacity expansion node
- Section 5: zynq interrupt
- Cloud native: cloud computing technology is upgraded again to open an era of comprehensive cloud development
- Investment transaction and settlement of the fund
- Ice - resources
- Is it reliable to open a new bond registration account? Is it safe?
- 同花顺注册开户靠谱吗?安全吗?
- Co process, asyncio, asynchronous programming
猜你喜欢

Open62541 import nodeset file directly

Introduction and several months' experience of extending the solution thanos of Prometheus

Host is not allowed to connect to this MySQL server

HJ质数因子

软件测试与质量期末复习

Ambari (VII) --- ambari integrated hue4.2 document (valid for personal test)

Uninstall and reinstall the latest version of MySQL database. The test is valid

Software design of power control board

sql主从复制搭建

kubernetes部署thanos ruler的发送重复告警的一个隐秘的坑
随机推荐
Study notes 22/1/18
Unity UI shadow component
ES6 use of return in arrow function
Ambari (VI) -- ambari API use
Recommended system series (Lecture 5): Optimization Practice of sorting model
大型项目中的Commit Message规范化控制实现
Soft exam -- software designer -- afternoon question data flow diagram DFD
自动化测试的生命周期是什么?
LeetCode之三步问题
golang gin框架进行分块传输
Study notes 22/1/19 and 22/1/20
Section 9: dual core startup of zynq
kubernetes集群命令行工具kubectl
Update pip to the latest version
SOC timer and interrupt configuration
How to configure DDR3 of dm8148
Ice, protobuf, thrift -- Notes
HJ prime factor
Makefile
Study notes 22/1/17