Design Twitter

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

 

user's browser / mobile App => Load Balancer => AppSrv1, AppSrv2, AppSrv3, ... => DBapp

Load Balancer:less

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

Database Sharding:ci

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

Database Schema:io

  Users, Tweets, Followers, Favoritestable

Indexes on each tableclass

相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息