UserID to distribute data load and a Redis-based Fan-out service to pre-compute timelines. To handle "Celebrity" accounts, we will use a Hybrid Pull/Push model to prevent cache exhaustion. Horizontal scaling will be managed via a Load Balancer (Nginx/HAProxy) across stateless application servers.Define the APIs expected from the system. This is your chance to analyze and define the read and write paths so that you can come up with the high-level design...
Request :- {"content": "tweet details content", "contentId":uniqueNumber, "maxChar": 500}
Response: - {200}
Request:- {"toFollowUserName": "otherAccountUserName", "toFollowId":"followId"}
Response:- {200}
Request:- {"tweetId": "otherUserContentId"}
Response:-200
Request:- {"topKno": 10}
Describe the overall system architecture. Identify the main components needed to solve the problem end-to-end. Use the diagramming tool to create a block diagram.
Deep dive into 2-3 key components. Explain how they work, how they scale, discuss tradeoffs, capacity, and any relevant algorithms or data structures.