编辑
2023-05-24
👨‍🎓 无限进步
00

CHAPTER 5: DESIGN CONSISTENT HASHING 05 设计一致哈希

To achieve horizontal scaling, it is important to distribute requests/data efficiently and evenly across servers. Consistent hashing is a commonly used technique to achieve this goal. But first, let us take an in-depth look at the problem. 要实现水平扩展,在服务器之间高效、均匀地分发请求/数据非常重要。一致哈希是实现此目标的常用技术。但首先,让我们深入研究一下这个问题。
编辑
2023-05-23
🧰语言-python
00

该文章已加密,点击 阅读全文 并输入密码后方可查看。

编辑
2023-05-09
📘总结-保持好奇心
00

人生之败,非傲即惰

然,勤则百弊皆除

勤分六种

  • 身勤,路虽远,行则必至;事虽难,做则必成
  • 眼勤,遇一人,必详细观察;看一文,必反复审阅
  • 手勤,易丟之物,随手拾之;易忘之事,随笔记之
  • 口勤,他人之常,多夸多赞;自己之短,多学多问
  • 心勤,精诚所至,金石为开;若思所至,诸事皆通
  • 脑勤,谋定而后动,知止而有得;万事皆有法,道正事则通

勤能补拙,全勤才是真正的勤

编辑
2023-05-05
🤓算法
00

题目

image.png

编辑
2023-05-04
👨‍🎓 无限进步
00

CHAPTER 4: DESIGN A RATE LIMITER 设计速率限制器

In a network system, a rate limiter is used to control the rate of traffic sent by a client or a service. In the HTTP world, a rate limiter limits the number of client requests allowed to be sent over a specified period. If the API request count exceeds the threshold defined by the rate limiter, all the excess calls are blocked. Here are a few examples: • A user can write no more than 2 posts per second. • You can create a maximum of 10 accounts per day from the same IP address. • You can claim rewards no more than 5 times per week from the same device.