-
Notifications
You must be signed in to change notification settings - Fork 87
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
设计Mint.com #37
设计Mint.com #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一丢丢小问题需要调整下。
|
||
*Note: This document links directly to relevant areas found in the [system design topics](https://github.com/donnemartin/system-design-primer#index-of-system-design-topics) to avoid duplication. Refer to the linked content for general talking points, tradeoffs, and alternatives.* | ||
*注意:这个文档中的链接会直接指向[系统设计主题索引](https://github.com/donnemartin/system-design-primer/blob/master/README-zh-Hans.md#系统设计主题索引)中的有关部分,以避免重复的内容。您可以参考链接的相关内容,来了解其总的要点、方案的权衡取舍以及可选的替代方案。* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
斜体请采用加粗的形式代替。
* `seller` - 32 字节 | ||
* `amount` - 5 字节 | ||
* Total: ~50 字节 | ||
* 每月产生 250 GB 新的交易内容 | ||
* 50 bytes per transaction * 5 billion transactions per month |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里还存在英文。
|
||
## Step 2: Create a high level design | ||
## 第二步:高层设计 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
『high level design』可译『概要设计』,详情请参考:donnemartin#70
|
||
For the **Category Service**, we can seed a seller-to-category dictionary with the most popular sellers. If we estimate 50,000 sellers and estimate each entry to take less than 255 bytes, the dictionary would only take about 12 MB of memory. | ||
对于 **分类服务**, 我们可以生成一个带有最受欢迎卖家的卖家-类别字典。如果我们估计50000个卖家,并估计每个条目占用不少于255个字节,该字典只需要大约12MB内存。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 数字前后添加一个空格。
- 『分类服务』后面的逗号改为全角符号。
@sqrthree 多谢指正,已做调整。 |
@whatbeg 好的哈,积分最晚下周一加上,感谢支持。 |
@sqrthree Mint #14 翻译完成