📣 黑五价提前开抢|VIP一年通行证5折,蓝莓、Offer多多同步特惠
回复: 2
跳转到指定楼层
上一主题 下一主题
收起左侧

2024年亚麻设计和题解

全局:

2024(10-12月) 码农类General 硕士 全职@Amazon - 网上海投 - 技术电面  | 😃 Positive 😐 Average | Pass | 在职跳槽

开始要面亚麻了,把设计的题更新一下。以前的可以参考这两个链接。
2023年 亚麻半年设计和BQ
https://www.1point3acres.com/bbs/thread-1016786-1-1.html
2024年Google 设计和题解
https://www.1point3acres.com/bbs/thread-1097035-1-1.html




SD 设计分布式计数器
原帖


以下对网上的一个比较详细的文章的解读
https://systemdesign.one/distributed-counter-system-design/Distributed Counter System Design

The article on “Distributed Counter System Design” outlines a solution for implementing a scalable and efficient counter system that can handle high throughput and concurrency across a distributed environment. Below, I’ll abstract the key components, processes, and strategies involved in the design.
Overview
A distributed counter is useful in scenarios where a system must tally counts across multiple nodes in a distributed system, such as counting clicks on a website or tallying votes. The primary challenge is ensuring that the counter is accurate, consistent, and capable of handling high load and distributed nature of the data.
System Design Components
        1.        Counter Sharding
        •        Purpose: To distribute the load uniformly across several machines to avoid a single point of failure or bottle
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
nodes to prevent data loss and improve read availability.
        •        Data Consistency: Implement eventual consistency, where the system tolerates temporary inconsistencies but guarantees that all updates will eventually be consistent across all nodes.
Conclusion
The design of a distributed counter system as described aims to balance between performance (speed of updates and reads) and reliability (data persistence and consistency). It addresses common challenges in distributed systems such as scalability, concurrency control, and fault tolerance. This system can be adapted and extended based on specific use cases and reliability requirements.


原文有比较详细的设计分析,我觉得主要缺少了DB之间的比较。比如MongoDB VS Cassandra, Redis vs Memcache。有兴趣的可以看看我写的其他帖子。


补充内容 (2024-12-02 08:11 +08:00):

2024年灭他设计和题解

本帖子中包含更多资源

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x

评分

参与人数 4大米 +19 收起 理由
evaeva11 + 1 给你点个赞!
DashRhino + 1 赞一个
匿名用户-DUGL7 + 15 欢迎分享你知道的情况,会给更多大米奖励!
xjfuxl + 2 很有用的信息!

查看全部评分


上一篇:求pimco summer25 sde hirevue面经
下一篇:24ng Software Engineer Timeline
🔗
 楼主| yangzhit 2024-12-2 08:10:50 来自APP | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies

本帖子中包含更多资源

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
回复

使用道具 举报

🔗
 楼主| yangzhit 2024-12-6 13:48:38 来自APP | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies

本帖子中包含更多资源

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表