码迷,mamicode.com
首页 > 其他好文 > 详细

Design Twitter

时间:2016-10-10 23:05:27      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

https://www.hiredintech.com/classrooms/system-design/lesson/72

 

user‘s browser / mobile App => Load Balancer => AppSrv1, AppSrv2, AppSrv3, ... => DB

Load Balancer:

  User => DNS load balancing, CDN => Software Load Balancer (nginx) => App Servers (Apache, Tomcat, Django..) => DB Cache => DB.

Database Sharding:

  application level (driven by config or some implicit rule e.g. tweet id‘s some bits)
  library level
  existing product, 

Database Schema:

  Users, Tweets, Followers, Favorites

Indexes on each table

Design Twitter

标签:

原文地址:http://www.cnblogs.com/qsort/p/5947352.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!