摘要: How to Design Youtube (Part I) One of the most common types of system design interview questions is to design an existing popular system. For example, 阅读全文
posted @ 2018-02-05 14:07 jxr041100 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Long-Polling, Websockets, SSE(Server-Sent Event), WebRTC 之间的区别 作者:liang0000zai 在下面的示例中,客户端指的是浏览器,服务器指的是网站服务器主机。 为了更好的理解这些知识点,你应该简单了解典型的http网站是如何工作的。 普 阅读全文
posted @ 2018-02-05 07:29 jxr041100 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 一致性hash作为一个负载均衡算法,可以用在分布式缓存、数据库的分库分表等场景中,还可以应用在负载均衡器中作为作为负载均衡算法。在有多台服务器时,对于某个请求资源通过hash算法,映射到某一个台服务器,当增加或减少一台服务器时,可能会改变这些资源对应的hash值,这样可能导致一部分缓存或数据失效了。 阅读全文
posted @ 2018-02-05 07:14 jxr041100 阅读(188) 评论(0) 推荐(0) 编辑
摘要: System design interview- consistent hash Tags: consistent hash, DHT, distribute hash table, Java, system design Consistent hashing is a simple yet pow 阅读全文
posted @ 2018-02-05 02:56 jxr041100 阅读(287) 评论(0) 推荐(0) 编辑
摘要: Design a Scalable System Step 1: Outline use cases and constraints Gather requirements and scope the problem. Ask questions to clarify use cases and c 阅读全文
posted @ 2018-02-05 02:44 jxr041100 阅读(279) 评论(0) 推荐(0) 编辑