Wednesday, April 27, 2022

Udemy | The "BigTech" System design interview Bootcamp

April 27, 2022

Introduction

It is always a good strategy to take some notes, and then I will focus more on my study. It is very good course and I like to learn better, and also follow up with more research. 

Authentication

  • Password-based
  • Token-based
  • Multi-factor
  • Certificate-based
  • Single sign-on
Section 3: Netflix: Capacity estimation

1. Estimate - request per second
  • How many active users Netflix has?
  • How many requests/min are required to stream a video?
  • The daily watch time of a user
    720 req/sec
2. Estimate - storage
    
  • The amount of available videos
  • The size of each video
    30 TB 
3. Estimate - Bandwidth
    25 GB/ sec

Section 4: Netflix Data Model

    15. Create data model
    
    16. Suitable databases

Key-value store
videoID: title, summary, video_url, thumbnail_url, length, rating 

Database selection

key-value store  - key-value store for metadata
Data store - Data store for video and thumbnail
Search engine - search DB for subset of video metadata

Search engine DB
  • Store subset of metadata
  • NoSQL DB
  • Used indexes to categorize
Search engine

Relational database - relational DB for users and subscriptions

Section 5: Netflix streaming feature 
    




Requirements check-in

video streaming
search
user accounts
subscription

Availability
Scalability
Reliability
Security 




No comments:

Post a Comment