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

[其他] 系统设计 数据库/存储选择

全局:

2024(4-6月)-CS博士+5-10年 | 内推| 码农类General全职@

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

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

x
大家面试系统设计的时候, 怎么考虑数据库/storage的选择呢? 选择sql, nonsql 根据什么rule? 有没有什么threshold去判断是不是read/write heavy? 有什么讲这方面的书或者blog推荐吗? 谢谢大家!

上一篇:24ng 回国接大厂60w offer 还是留美继续找工?
下一篇:Meta NYC BCR Delivery Efficiency Team怎么样
🔗
TB2020 2024-4-28 05:36:35 来自APP | 只看该作者
全局:
看级别,低级别其实就期望你能说出个大概理由,这些网上满天飞的对比,你不要说你不会Google和ChatGPT
再向上你如果没有实战选过数据库,很难说的很好,threshold就更不是小白能搞明白的了,你可以看看厂商的benchmark,但是实际情况复杂太多,你如果没有真实的生产环境经验你是很难有信心的

评分

参与人数 1大米 +1 收起 理由
微信用户_00erb + 1 赞一个

查看全部评分

回复

使用道具 举报

🔗
 楼主| 微信用户_00erb 2024-4-29 11:44:50 | 只看该作者
全局:
Answer from GPT about read/write heavy.


do we have a threshold to say a system is read heavy or write heavy
ChatGPT
There isn't a specific threshold that universally defines when a system is considered read heavy or write heavy. Instead, it's more about relative proportions and workload characteristics. However, here are some general guidelines:

Read Heavy:
If a system's workload involves significantly more read operations than write operations, it's typically considered read heavy. This could mean, for example, that read operations constitute more than 70-80% of the overall workload.
A high read-to-write ratio, where read operations greatly outnumber write operations, is a strong indicator of a read-heavy system.
Write Heavy:
If a system's workload involves significantly more write operations than read operations, it's considered write heavy. This could mean, for example, that write operations constitute more than 70-80% of the overall workload.
-baidu 1point3acresA high write-to-read ratio, where write operations greatly outnumber read operations, is a strong indicator of a write-heavy system.
Keep in mind that these thresholds are not fixed and can vary depending on the specific requirements and characteristics of the system. Additionally, the definition of what constitutes "significantly more" can vary based on factors such as the application domain, the scale of the system, and the performance expectations.

When assessing whether a system is read heavy or write heavy, it's essential to consider not only the volume of operations but also the nature of the operations, the impact on system performance, and any associated requirements for scalability, latency, and data consistency
回复

使用道具 举报

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

本版积分规则

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