Grokking the System Design Interview, Volume II
Vote
0% completed
Google News: Data Model and Storage
Step 5: Data Model and Storage Design
Article Data: Each news article can be represented by a data object with fields like: article_id, title, content_snippet, url, source_id, publish_time, category, keywords, image_url, etc. We might also store a vector for content (if doing recommendations) or flags (trending, breaking, etc.).
- We will assign a globally unique
article_id(could be a hash of the URL or an auto-generated ID like a Snowflake ID). This acts as the key for storing and referencing the article.
.....
.....
.....
Like the course? Get enrolled and start learning!