当前位置:网站首页>道友,你在项目中使用Redis跟三圣母有啥关系?
道友,你在项目中使用Redis跟三圣母有啥关系?
2022-06-09 11:51:00 【华为云】
迷糊道人:嘿,左羊我听说你最近在做一款名为"慧眼灵识分析系统"的产品,并在其中引入了Redis中间件啊?
左羊:是啊,确实引入Redis了
迷糊道人:哦,你能讲讲是什么因素让你使用Redis呢?引入Redis有什么好处吗?
左羊:我为啥使用Redis呢?
我们这个系统有较多的月度统计啊,季度统计啊这种需要Mysql关联七八张表并且需要几百毫秒甚至几秒钟才能查出来然后查出好久不会变化的数据,用户每次请求都需要去查Mysql等好久才会响应数据,这样的话用户早就发飙了。

用户要发飙可还行,那咋整呢?扔Redis缓存里啊,一个Key,一个Value,下次再有用户请求就先看下Redis有没有,有就不走数据库呗。用户发起请求,啪,两毫秒就返回数据了。这就是我为啥使用Redis,高性能,哎丝滑。

左羊:引入Redis有什么好处呢?

这不最近【三圣母】和她儿子【沉香】给"慧眼灵识分析系统"做代言了吗,致使我们的日活用户有2万多仙人暴增到20多万仙人,导致业务高峰期QPS由每秒1000升至每秒10000,业务频繁查询Mysql,他多次扛不住压力自闭了。

被【三圣母】在仙博上diss后,我们痛定思痛的想咋整呢?这个时候左羊想起上面提到Redis,左羊在压测Redis时发现它最高可以抗住7万到9万每秒的QPS,所以我们将所有打到Mysql的查询请求转到Redis上,用来抗住当前场景高并发时大量请求涌入系统保证其可用性。这就是Redis的高并发用途,得劲~

迷糊道人:呀!学到老活到老~
边栏推荐
- 勤于奋国外LEAD赚钱,谈任务的重要性
- 从2022年的这几篇论文看推荐系统序列建模的趋势
- JMeter安装教程
- From these papers in 2022, we can see the trend of recommended system sequence modeling
- Are there any financial products with guaranteed principal and interest in 2022? I want to invest and manage money, but I'm afraid of losing money
- JMeter installation tutorial
- 6. < tag backtracking and cutting problems > lt.131 Split palindrome string
- Live broadcast preview | database salon – [special session on open source ecology]
- 06 | the first step of China Taiwan landing: enterprise strategy decomposition and current situation research (Discovery)
- Is the futures account opening cloud reliable and safe??
猜你喜欢

PostgreSQL weekly news - june1,2022

tag回溯-刷题预备知识-1. 回溯法模板, + lt.46. 全排列

『忘了再学』Shell基础 — 28、AWK中条件表达式说明

ThreadPoolExecutor 从精通到入门
![[data center stage] 00 opening words data center stage, is it a trap? Or the golden key?](/img/19/256cdcf783986d1012ddc75c8b2c31.png)
[data center stage] 00 opening words data center stage, is it a trap? Or the golden key?

接力AlphaFold!星药科技重磅发布TBind-开启分子蛋白复合物结构预测新纪元

.NET基础知识快速通关11

BFS练手题目

Fairness through awareness

MySQL 乐观锁、悲观锁、多粒度锁
随机推荐
10 | summary: summary of middle platform landing tool resources
中国科学院院刊 | 包云岗:加速发展关键核心技术,必须把握技术发展的自身规律
1.<tag-回溯和组合及其剪枝>lt.77.组合 +剪枝 dyh
投资理财产品会把本金都亏了吗?
GameFi新的启程,AQUANEE将于6.9日登陆Gate以及BitMart
8. < tag backtracking and full arrangement > lt.46 Full Permutation + lt.47 Full arrangement II
请你说说乐观锁和悲观锁,以及适用场景
Zotero | Literature Association
. Net basic knowledge quick pass 8
13. Using WPF to develop USB detection tool
Range方法返回对象转换办法
MySQL 乐观锁、悲观锁、多粒度锁
leetcode 1332. Remove Palindromic Subsequences(删掉回文子串)
curator - 实现服务注册与发现
12.<tag-二叉树和BST基础>lt.701. 二叉搜索树中的插入操作 dbc
Chaiyunpeng: Cultivation of innovation ability is crucial | interview with oceanbase database competition
Classes internes anonymes et variables locales
. Net basic knowledge quick pass 11
玩转Web3:创建属于自己的ERC-721(NFT)
Nanny tutorial: how to become a contributor to Apache linkis documents