当前位置:网站首页>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
边栏推荐
- Resolution: argument 'radius' is required to be an integer
- POM of SSM integration xml
- GDB的使用
- kettle庖丁解牛第16篇之输入组件周边讲解
- On the bug of JS regular test method
- [quick platoon] 215 The kth largest element in the array
- Ding ~ your scholarship has arrived! C certified enterprise scholarship list released
- 【视频】线性回归中的贝叶斯推断与R语言预测工人工资数据|数据分享
- Oracle database combines the query result sets of multiple columns into one row
- Exemple de méthode de réalisation de l'action d'usinage à point fixe basée sur l'interruption de déclenchement du compteur à grande vitesse ob40 pendant le voyage de tia Expo
猜你喜欢
[barycentric coordinate interpolation, perspective correction interpolation] principle and usage opinions
Esp32 vhci architecture sets scan mode for traditional Bluetooth, so that the device can be searched
The interviewer dug a hole for me: what's the use of "/ /" in URI?
集简云 x 飞书深诺,助力企业运营部实现自动化办公
Servlet of three web components
[point cloud series] neural opportunity point cloud (NOPC)
SAP UI5 应用开发教程之七十二 - SAP UI5 页面路由的动画效果设置试读版
Machine learning -- PCA and LDA
[official announcement] Changsha software talent training base was established!
Detailed explanation of constraints of Oracle table
随机推荐
[point cloud series] foldingnet: point cloud auto encoder via deep grid deformation
Django::Did you install mysqlclient?
Logstash数据处理服务的输入插件Input常见类型以及基本使用
Opening: identification of double pointer instrument panel
SAP ui5 application development tutorial 72 - trial version of animation effect setting of SAP ui5 page routing
Lpddr4 notes
校园外卖系统 - 「农职邦」微信原生云开发小程序
Error 403 in most cases, you or one of your dependencies are requesting
[andorid] realize SPI communication between kernel and app through JNI
MySQL 8.0.11 download, install and connect tutorials using visualization tools
Summary of request and response and their ServletContext
Common analog keys of ADB shell: keycode
torch. Where can transfer gradient
[multi screen interaction] realize dual multi screen display II: startactivity mode
MySQL5. 5 installation tutorial
切线空间(tangent space)
榜样专访 | 孙光浩:高校俱乐部伴我成长并创业
Detailed explanation of Oracle tablespace table partition and query method of Oracle table partition
零拷贝技术
JS compares different elements in two arrays