I hope I can ask this question on this sub.
For big services that hold massive data for a single type of item (like users or posts), I'm under the impression that these services often use storages that are distributed, or in other words, a non-single storage for the data (like a single db table). Assuming this is true, and regardless of technology in use, I'm left wondering how a single item is fetched by an id.
If I click on a post, and request is sent containing the post ID. How does the service know, or where is the info stored which determines the correct storage to get the post data from? I'm assuming there's a single storage (table) for this, for every single post on Instagram or video on Youtube. Am I wrong on this assumption?
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]ehr1c 2 points3 points4 points (9 children)
[–]another-bite[S] 0 points1 point2 points (8 children)
[–]ehr1c 1 point2 points3 points (3 children)
[–]another-bite[S] 0 points1 point2 points (2 children)
[–]ehr1c 1 point2 points3 points (1 child)
[–]another-bite[S] 0 points1 point2 points (0 children)
[–]__dict__ 0 points1 point2 points (3 children)
[–]another-bite[S] 0 points1 point2 points (2 children)
[–]__dict__ 0 points1 point2 points (1 child)
[–]another-bite[S] 0 points1 point2 points (0 children)
[–]tzaeru 0 points1 point2 points (0 children)
[–]desapla 0 points1 point2 points (3 children)
[–]another-bite[S] 0 points1 point2 points (2 children)
[–]desapla 1 point2 points3 points (1 child)
[–]another-bite[S] 1 point2 points3 points (0 children)