查看: 18887| 回复: 19
跳转到指定楼层
上一主题 下一主题
收起左侧

[经验总结] 老猫的系统设计总结

   
全局:

注册一亩三分地论坛,查看更多干货!

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

x
找工作断断续续持续了快一年时间。有点拖拉。但是最终还是修成正果。拿到了狗脸软亚的offer。准备去脸家。
面完了自己也想写一个系统设计的总结,一来将来在找工作的时候有点参考,二来希望能帮到其他人。

貌似地里格式搞起来比较麻烦?我自己有一个文档。有时间我会慢慢优化,加一些东西。很多地方都写的比较简单。稍微搞好一点有机会在发出来让大家下载……

写的比较乱,有些描述也不见得准确。还有很多语法错误。请大家指正……谢谢

Overview: System
Typically, the system design question is backend focused.  That means the candidate does not need to consider the front-end structure.  For backend, a system typically has:
1.        A or a set of services, that provide required functions.
2.        A or a set of data stores, that host the static information.
3.        A or a set of cache, either sit in the service or as a centralized cache, that speed up the system.
In addition to the 3 parts, we typically have one or a set of load balancers to distribute the load to multiple servers.
All these pieces combine together and form a system.  System design questions test candidates’ understanding of all these pieces and the capability to use them.

Part 0: Collect Requirements
1.        System functional requirements
2.        Traffic size
3.        Data size
您好!
本帖隐藏的内容需要积分高于 50 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 50 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

Part 4: Datastore
First of all, discuss the table structure.  Table name, columns, info etc.  
Second, discuss the data volume.  How many data points, size of the data, how long to keep the data.
Third, which database to use?

Relational Database (MySQL, Oracle):
Relational Database will be suitable for small projects, or locations that require 100% CAP…

Cassandra:
Cassandra has quite a few benefits: a) no single point of failure.  B) read fast.  
Potential issue: a) update/delete a little slow as it needs to update/delete information from multiple nodes.  B) low consistency.  

H-Base:
H-Base is backed by Hadoop.  
Benefits: a) Consistency is high (it is a master-slave structure)  b) fast read, especially when fetching a handful records from a large quantity of data.  
Potential issue: a) needs a lot of expertise, including Hadoop, zookeeper (for service discovery), Hive (For query) etc.  It is not a simple system.

HDFS (Hadoop distributed file system):
It is used widely to store static data, such as pictures and videos.



补充内容 (2019-9-22 07:48):
发现有一个系统设计专区……管理员可不可以帮忙移过去?
谢谢

评分

参与人数 77大米 +195 收起 理由
woshiWLY + 2 给你点个赞!
ardorardor3 + 2 很有用的信息!
wufunny + 2 很有用的信息!
sever515 + 1 给你点个赞!
yanjinbin + 2 给你点个赞!

查看全部评分


上一篇:系统设计之推荐系统必看的两个资料
下一篇:分享一些最近看过和整理的分布式系统的文章,希望对大家有帮助

本帖被以下淘专辑推荐:

推荐
dennyzhang007 2019-11-12 14:01:24 | 只看该作者
全局:
Some takeaways:

- MemCache are cache that sits in the application service. 之前还不知道。以为memcached vs redis就是一个没有file system backup, 一个有。
- HBase is Strong Consistency。脑海中所有NoSQL都是eventual consistency。 原来不是

评分

参与人数 3大米 +4 收起 理由
ripxd + 1 赞一个
codeyy + 2 给你点个赞!
九道 + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

推荐
 楼主| flypanda 2019-9-22 09:15:24 | 只看该作者
全局:
请叫我热情老八 发表于 2019-9-22 08:57
感谢楼主的分享! 想问下楼主,我猜楼主应该是社招, 社招的话 system design 是怎么准备的?

买了那个 [url=@Yun Zhang  https://www.1point3acres.com/bbs/thread-552194-1-1.html  这个帖子里也有grokking the system design interview,我们有affiliate link: https://www.educative.io/courses ... d=5749180081373184/]grokking the system design interview[/url]...
然后看帖
自己Google
回复

使用道具 举报

全局:
prettyyyyyyyyyyyyyyyyy good
回复

使用道具 举报

全局:
感谢楼主的分享! 想问下楼主,我猜楼主应该是社招, 社招的话 system design 是怎么准备的?
回复

使用道具 举报

🔗
gongchen 2019-9-22 11:21:48 | 只看该作者
全局:
感谢楼主分享 已加米

楼主方便讲讲是几年经验,什么方向么(后端/前端/全栈),之前在什么规模的公司工作么?
回复

使用道具 举报

全局:
太太牛逼了,很精练,也很到位。谢谢。文科转码很受用。
回复

使用道具 举报

🔗
 楼主| flypanda 2019-9-22 23:36:07 来自APP | 只看该作者
全局:
gongchen 发表于 2019/09/22 11:21:48
感谢楼主分享 已加米

楼主方便讲讲是几年经验,什么方向么(后端/前端/全栈),之前在什么规模的公司工作么?
后端。在一个OTA混:-)公司不是很大,也就几百人吧。
回复

使用道具 举报

🔗
snowman 2019-9-23 01:16:37 | 只看该作者
全局:
谢谢楼主分享!!
回复

使用道具 举报

🔗
cacicat 2019-9-24 01:59:37 | 只看该作者
全局:
好贴必须mark之,感谢lz!
回复

使用道具 举报

全局:
谢谢楼主的分享。今天刚刚面了system design一脸懵逼
回复

使用道具 举报

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

本版积分规则

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