摘要: 使用Redis不得不考虑缓存的问题,处理不好的话会被黑客利用从而导致缓存击穿、缓存穿透、缓存雪崩等问题 场景如下图: 缓存击穿:一个已经存在的key,当访问量过大的时候,有部分请求可能会绕过缓存直接请求DB,从而导致DB请求量变高,压力增大 解决方案:可以在请求key之前,使用setNx加锁,设置一 阅读全文
posted @ 2018-11-21 16:02 凌雨尘 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 推荐书籍:快乐的 Linux 命令行 快乐的 Linux 命令行 本书是 The Linux Command Line 的中文版, 阅读 翻译由 好奇猫工作室 发起, 翻译者是:happypeter , billie66 和最最可爱的社区 ( Github 贡献者名单) 想要参与翻译的朋友可以直接 阅读全文
posted @ 2018-11-21 11:52 凌雨尘 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Modern operating systems are usually multitasking, meaning that they create the illusion of doing more than one thing at once by rapidly switching fro 阅读全文
posted @ 2018-11-21 11:48 凌雨尘 阅读(318) 评论(0) 推荐(0) 编辑