Loading...
Estimate the scale of the system. Consider daily active users, read/write ratio, storage requirements, bandwidth, and any relevant QPS calculations...
Tweet:
ADD /tweet/v1/
GET /tweet/v1/tid
POST(modification) /tweet/v1/tid
Delete /tweet/v1/tid
Like:
GET /tweet/v1/tid
POST /tweet/v1/tid
Follower:
LIST /follower/v1/uid
ADD /follower/v1/uid
Workflow:
Define the data model. Identify the main entities, their attributes, and relationships. Consider the choice of database type (SQL vs NoSQL) and justify your decision based on access patterns...