当前位置:网站首页>Storage scheme of video viewing records of users in station B
Storage scheme of video viewing records of users in station B
2022-04-23 13:41:00 【Ruo Xiaoyu】
At noon B When I'm standing there watching the video , Suddenly curious B How to save the video viewing record of the station .
First , Because the video records viewed by multiple terminals are synchronized , That is, whether you watch it on your mobile phone , Or web viewing , Or a new device to watch , Videos can jump directly to the last viewing position , So this record should not be stored locally .
secondly ,B The users of the station are up to 2020 end of the year ,MAU( Monthly living ) reach 2.02 Billion , Total number of videos 2020 According to statistics, it is about 7 Ten million , Suppose you press 1 100 million pieces , Even on a per capita daily basis 100 A video , that 10 Every user also has 36.5 Ten thousand records . How to store such a large sparse matrix ? Traditional database is obviously not suitable .
My first thought should be HBase, Single instance supports one billion rows and one million columns . Because video content is growing infinitely , And users are limited , So you can take the user id As rowkey, Video content id As column To record the viewing position of each video of the user .
But the number of videos has now reached 100 million , And it will continue to grow , A million trains is obviously not enough . This may require consideration of multiple instances , That is, put the video content id According to a certain hash The rules ( Or directly in order , Easy to expand ) Stored in different instances , such as 1 One hundred million videos are saved for each instance 100 Ten thousand , branch 100 An example , When querying the user's video viewing location , Just according to the video id Go to the specified instance first , Then through the user id Primary key + Video content id Column query location record .
however , After thinking about it, I feel that this is a relatively clumsy scheme .
The above is just a question that pops up in my mind , Let's keep a record of , Specifically B Station or other video websites ( For example, Teng Youai ) What technical scheme is adopted , I will continue to search and think .
版权声明
本文为[Ruo Xiaoyu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230602187052.html
边栏推荐
- Database transactions
- The difference between string and character array in C language
- Common commands of ADB shell
- Android clear app cache
- SAP ui5 application development tutorial 72 - animation effect setting of SAP ui5 page routing
- Aicoco AI frontier promotion (4.23)
- Plato farm, a top-level metauniverse game, has made frequent positive moves recently
- 集简云 x 飞书深诺,助力企业运营部实现自动化办公
- The interviewer dug a hole for me: what's the use of "/ /" in URI?
- Oracle modify default temporary tablespace
猜你喜欢

面试官给我挖坑:URI中的 “//” 有什么用?

SAP UI5 应用开发教程之七十二 - SAP UI5 页面路由的动画效果设置
![[dynamic programming] 221 Largest Square](/img/31/3af4ba05764a683220b5292d3b8780.png)
[dynamic programming] 221 Largest Square

Android clear app cache

QT calling external program
![[point cloud series] Introduction to scene recognition](/img/1f/c64712b03ae5b235b5dd3347c3e86a.png)
[point cloud series] Introduction to scene recognition

Interface idempotency problem

Vscode tips
![[Journal Conference Series] IEEE series template download guide](/img/1b/a3cf2688778ec34354e77e28e32be8.png)
[Journal Conference Series] IEEE series template download guide
![[point cloud series] pointfilter: point cloud filtering via encoder decoder modeling](/img/da/02d1e18400414e045ce469425db644.png)
[point cloud series] pointfilter: point cloud filtering via encoder decoder modeling
随机推荐
XML
GDB的使用
Oracle modify default temporary tablespace
Software test system integration project management engineer full truth simulation question (including answer and analysis)
顶级元宇宙游戏Plato Farm,近期动作不断利好频频
Unified task distribution scheduling execution framework
Oracle generates millisecond timestamps
面试官给我挖坑:URI中的 “//” 有什么用?
Longitude and latitude position of provincial capitals in China
Set Jianyun x Feishu Shennuo to help the enterprise operation Department realize office automation
[point cloud series] deepmapping: unsupervised map estimation from multiple point clouds
torch. Where can transfer gradient
Oracle view related
[point cloud series] foldingnet: point cloud auto encoder via deep grid deformation
[indicators] precision, recall
Short name of common UI control
Database transactions
Oracle kills the executing SQL
Campus takeout system - "nongzhibang" wechat native cloud development applet
Machine learning -- naive Bayes