-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在布隆过滤器解决缓存穿透问题一章感觉有问题 #16
Comments
这个逻辑需要改成把真实存在的放入布隆过滤器,这样先去过滤器查,没有的话直接丢掉,有的话再去缓存查<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br/><br/><br/><div class="ntes-mailmaster-quote" style="padding-top: 1px; padding-bottom: 1px" >
<div style=" margin-top: 2em; margin-bottom: 1em; font-size: 14px; line-height: 1.25; color: #78787a; " >---- 回复的原邮件 ----</div>
<div style=" margin-bottom: 1em; font-size: 12px; line-height: 1.25; color: #232324; padding: 0.5em 0.25em; border-radius: 0.67em; background-color: #f0f0f0; " >
<table width="100%" cellpadding="0" cellspacing="9" border="0">
<tr>
<td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
发件人
</td>
<td valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
<a class="mail-from" style="text-decoration:none;color:#0886e8;" ***@***.******@***.***></a>
</td>
</tr>
<tr>
<td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
日期
</td>
<td class="mail-date" valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
2022年02月10日 12:32
</td>
</tr>
<tr style="">
<td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
收件人
</td>
<td valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
<a class="mail-to" style="text-decoration:none;color:#0886e8;" ***@***.******@***.***></a>
</td>
</tr>
<tr style="">
<td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
抄送至
</td>
<td valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
<a class="mail-cc" style="text-decoration:none;color:#0886e8;" ***@***.******@***.***></a>
</td>
</tr>
<tr>
<td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
主题
</td>
<td class="mail-subject" valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
[daydreamdev/MeetingFilm] 在布隆过滤器解决缓存穿透问题一章感觉有问题 (Issue #16)
</td>
</tr>
</table>
</div>
<div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><p></p>
<p dir="auto">根据布隆过滤器解决缓存穿透问题这一章的设计方案,把不存在数据库的信息存入到布隆过滤器,如果攻击者把ID为-1~-999999999999的请求(假设这批数据都不存在数据库)同时发送,那么这些都要达到数据库,这么多请求数据库肯定会奔溃掉吧?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly, <a href="#16">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AH3PPIKF4TEMA2EV345TPWTU2M5UZANCNFSM5N7Q5OUQ">unsubscribe</a>.<br>Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br>You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AH3PPIO24LUW6QSC7ZXW5T3U2M5UZA5CNFSM5N7Q5OU2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4Q2R2WZQ.gif" height="1" width="1" alt=""><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><daydreamdev/MeetingFilm/issues/16</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#16",
"url": "#16",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script></div>
</div>
</body>
</html>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
根据布隆过滤器解决缓存穿透问题这一章的设计方案,把不存在数据库的信息存入到布隆过滤器,如果攻击者把ID为-1~-999999999999的请求(假设这批数据都不存在数据库)同时发送,那么这些都要达到数据库,这么多请求数据库肯定会奔溃掉吧?
The text was updated successfully, but these errors were encountered: