Skip to content
/ youtube Public

A highly scalable video-streaming-app developed using Javascript, Reactjs, Redux-toolkit

Notifications You must be signed in to change notification settings

SriCoD/youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debouncing:

typing slow = 200ms typing fast = 30ms

Perfomance:

  • iphone pro max = 14 letter * 1000 = 140000
  • with debouncing= 3 API calls * 1000 = 3000

Debouncing with 200ms

  • if difference between 2 key strokes is <200ms - DECLINE API call
  • 200ms make an API call

Cache: time complexity tro search in array = O(n) time complexity tro search in Object = O(1)

[i, ip, iph, iphone]

{ i: ip: iph: iphone: }

new Map();

About

A highly scalable video-streaming-app developed using Javascript, Reactjs, Redux-toolkit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published