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

2024年Google 设计和题解

全局:

2024(10-12月) 码农类General 硕士 全职@Google - 内推 - Onsite  | 😃 Positive 😐 Average | Other | 在职跳槽

去年总结了亚麻和灭他的设计题,这次把地里看到的谷歌设计题整理一下。


2023年 亚麻半年设计和BQ
https://www.1point3acres.com/bbs/thread-1016786-1-1.html


2023年 灭他系统设计半年总结
https://www.1point3acres.com/bbs/thread-1016549-1-1.html


因为分数原因,有足够分数的同学可以贴一下题目。我会根据经验进行解读。


要求设计一个分布式缓存
https://www.1point3acres.com/bbs/thread-1096436-1-1.html


在领英找了一个比较详细的 例子,然后用Chat GPT Highlight,中文是我的解读。 https://www.infoq.com/articles/netflix-global-cache/
Building a Global Caching System at Netflix: A Deep Dive into Global Replication

Key Takeaways
        •        Global Replication Strategy: Netflix replicates data across four regions, reducing latency and enhancing reliability during regional outages.
        •        EVCache Caching: EVCache, a distributed key-value store on SSDs, enables linear scalability and resilience, managing huge data volumes.
        •        Infrastructure Scale: EVCache includes 200 clusters and 22,000 servers, handling 30 million global replication events, 400 million operations per second, and storing around 2 trillion items totaling 14.3 petabytes.
        •        Client-Initiated Replication: The topology-aware EVCache client manages data routing, reducing server load and supporting flexible replication.
        •        Efficiency Improvements: Batch compression and a switch to Eureka DNS for service discovery have reduced network costs, enhancing performance.


缓存服务器常见的有Memcached和Redis,Redis更轻量级,适用小数据,比如Json/String。Memcached更适用大文件,比如短视频。这应该是Netflix选择Memcached原因,因为有些视频,比如短视频影片预告需要进行缓存。
(1)replicates在大数据存储比较普遍,主要是用于灾难备份。比如世贸中心被袭击了,整个数据中
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
n node location, availability, data distribution, and network latency, balancing load efficiently.


Efficiency Improvements
        •        Batch Compression: Reduced network bandwidth by 35%.
        •        Removing Load Balancers: Shifted from NLBs to Eureka DNS for routing, reducing network costs by 50%.


跨Region的Request,用了Batch Compression,毕竟从东岸到西岸比较远。

Conclusion
Netflix’s global caching solution, driven by EVCache and client-initiated replication, provides a scalable, low-latency infrastructure. Ongoing improvements in replication efficiency, data availability, and cost management ensure Netflix’s infrastructure supports seamless user experiences worldwide.


总结一下,EVCache部署在AWS的环境,Instance/Network都很贵。文中给出了一些Solution,来减少Cost。比如。 欢迎大家给出不同的解读,有问题可以留言。

本帖子中包含更多资源

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

x

评分

参与人数 3大米 +18 收起 理由
EIApsygrooo + 2 很有用的信息!
匿名用户-FKH7D + 15 欢迎分享你知道的情况,会给更多大米奖励!
shtseng + 1 给你点个赞!

查看全部评分


上一篇:Stripe条纹intern HM面
下一篇:鲁布里克 VO
🔗
leehome 2024-11-11 17:02:10 | 只看该作者
全局:
太感谢了!好好学习一下先
回复

使用道具 举报

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

本帖子中包含更多资源

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

x
回复

使用道具 举报

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

本版积分规则

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