摘要: Scenario: MAU -- monthly active users step1: 罗列功能 register/login user profile display/edit upload image/video search post/share a tweet timeline/news 阅读全文
posted @ 2024-01-08 09:36 dddddcoke 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 4S 分析法(思路清晰法) 场景scenario: 和面试官沟通。features/QPS(每秒访问量)/DAU/Interfaces 服务service: 大系统拆分成小服务。 存储storage:数据如何存储和访问。缓存/数据库/file system 升级scale:解决缺陷,处理可能的问题。 阅读全文
posted @ 2024-01-06 16:28 dddddcoke 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Distributed System: a set of cooperating computers that are communicating each out over networked to get coerent tasks done. * achive parallelism * fa 阅读全文
posted @ 2024-01-06 02:21 dddddcoke 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Raft - 分布式共识算法 为什么要这么设计? 横向分布式,同一个模块内部为了提高系统的吞吐量而采用的多节点。 优点: 1.数据备份, 2.负载均衡 CAP理论 一致性consistency:数据强一致,读写一致。 可用性availabilty:响应快。 分区容错性partition tolera 阅读全文
posted @ 2023-12-25 09:22 dddddcoke 阅读(4) 评论(0) 推荐(0) 编辑