Grokking the System Design Interview, Volume II
0% completed
Step 4: API Design
Clients use three REST calls over HTTPS. Two read recommendations, and one records what the user did.
Every request carries an authentication token. The token identifies the account and the profile currently selected, and the server takes user_id from it. No request names a user in its parameters or body, so no client can read or write another profile's data.
1. Get Home Feed
GET /v1/recommendations/home?device_type=tv&page_token=...device_typetells the server how many rows and titles the screen can show.page_tokenfetches more rows as the user scrolls down.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%