clubwego / douyin Goto Github PK
View Code? Open in Web Editor NEWdoushen后端入口
doushen后端入口
引入es
视频搜索(关键词、标签、视频名、用户名) ,设计合理的索引保证返回贴合用户偏好的视频,增加用户粘度
写es的同时保证双写一致?
用户上传视频后,不重新进入或者不退出重写登录,无法获取到最新的视频。
引入mq
视频发布(保存到云端、加入视频流、发布消息推送给粉丝)
好友、活动、发布消息推送
负载均衡、限流等
消息按时间分区,以某时间点&消息量为界限
将消息记录花费为冷分区、热分区
冷分区:历史特别悠久的消息,客户端本地保存历史消息,如果丢失查找冷分区,需要加载很久用户也能接受,分区容量可以很大
热分区:最近的消息,控制分区容量在一定范围内,保证就算db查找也能很快返回给用户
同时可以基于userId做分片、甚至某业务字段二次分片?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.