Sharded counter copy

Problem statement

Real-time applications like Facebook, Twitter, and Youtube have high user traffic. Users come to the applications and perform multiple operations (view, like, comment, etc.) depending on the application’s structure. For instance, an image is posted on a Facebook page with millions of followers, and the post likes rapidly increase after each millisecond. Here, counting the likes might be easy for this single image, but what will we do when thousands of images or videos are uploaded simultaneously by many pages or celebrities, each with millions of followers. Let’s see the below figure of Youtube’s videos viewed by millions of users in 24 hours.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy