Design a system to display and persist the view count of videos on youtube.
- As soon as the video is opened, the count should increase and the correct number should be displayed on th page.
- How do you handle trending videos where lakhs of people can open the video at the same time. The view counter should be able to scale to this high traffic.
I suggested creating an api that takes video id and uses redis to keep a count of the video view count. However this will probably not scale. Do we need to go with an asynchronous approach for managing the scale and concurrency?
Any suggestions are appreciated.
Comments (3)

