Это видео недоступно.
Сожалеем об этом.

8. Back-Of-The-Envelope Estimation for System Design Interview | Capacity Planning of Facebook | HLD

Поделиться
HTML-код
  • Опубликовано: 16 авг 2024

Комментарии • 89

  • @saanikagupta1508
    @saanikagupta1508 8 дней назад +1

    In the context of large-scale data caching, when we refer to "caching," we are usually talking about using RAM to store frequently accessed data, rather than the small, high-speed CPU caches (L1, L2, L3).
    75 GB of cache per machine is too much. Cache is usually is MB. So this was actually RAM we were using for caching.
    Systems use a portion of the machine's RAM to store cached data. This type of caching is often managed by software (e.g., Redis, Memcached).
    We don't need a separate "cache node" or additional hardware specifically for caching. The RAM in our existing machines is used to store cached data.
    When we calculated RAM requirement of 750 GB for caching. This only accounts for cache and not memory required for processing requests, running applications, and handling other system operations. So actual RAM requirement should be more than 750 GB.

  • @goyaldeekshant
    @goyaldeekshant Год назад +6

    perfect calculation, being mathematics student loving system design now

  • @sumit12345yadav
    @sumit12345yadav Год назад +5

    nice video, to the point..no bakwas or promotion. thank you

  • @rupeshjha4717
    @rupeshjha4717 Год назад +3

    Thanks a lot, for accepting my suggestion on the last video, It's very helpful!
    All doubt cleared!, love your content!

  • @ankushchoudhary9392
    @ankushchoudhary9392 Месяц назад +1

    Shrayansh, thanks for making videos in hindi, its so smooth to understand

  • @jatinsoni3552
    @jatinsoni3552 Год назад +3

    Very valuable content! Please keep guiding and helping us like this. Thanks

  • @divyachauhan3478
    @divyachauhan3478 Год назад +3

    Your channel is a GEM 💎

  • @troyporter3825
    @troyporter3825 6 месяцев назад +1

    great video, this stuff is new to me and I had no clue what BOE was before, now I understand. thank you!

  • @DhananjayKumar-bd2jg
    @DhananjayKumar-bd2jg 25 дней назад +1

    Amazing sir, no one taught this :)

  • @padmanabhwattamwar478
    @padmanabhwattamwar478 10 месяцев назад +1

    This video helped me to make estimation on ram and db size

  • @deepakparamesh8487
    @deepakparamesh8487 Год назад +2

    The cheat sheet is so much valuable

  • @leetcoder9090
    @leetcoder9090 Год назад +1

    Sir GFaad Video, very helpful
    Thanks for the knoweledge u r sharing.

  • @karthikhq
    @karthikhq 5 месяцев назад +1

    Awesome, Bhai - This is really helpful.

  • @user-mc9lk5kl7p
    @user-mc9lk5kl7p Год назад +1

    I have one doubt in RAM estimation, there are 20% DAO and you consider this only, why not consider for long term(maybe different users will be active next day).

  • @YashGupta-08
    @YashGupta-08 9 месяцев назад +1

    Brilliant explanation! Thanks a lot.

  • @zeus31888
    @zeus31888 Год назад +1

    18k is average request per seconds. Request won't be evenly distributed every second.Total number of server should be for peak request per second.Suppose peak in a day is 30k per request per second so 300 server.For storage estimation average request will work.

    • @ConceptandCoding
      @ConceptandCoding  Год назад +1

      Hi Utkarsh,
      you are right that 18k per sec is average computed from Daily active Users.
      But when the peak can happen? Based on Concurrent Users, lets say Concurrent Users is 10% of DAU (or even take 20%) and now if you will calculate the traffic, it will be very less compared to 18k per second.
      So i think we are good with this number and server during peek too.

  • @currentaspiration8755
    @currentaspiration8755 10 месяцев назад

    Simple and nice explanation which will be highly helpful

  • @Karansing_Rajput
    @Karansing_Rajput 11 месяцев назад +2

    Hey Shreyansh, your videos are awesome, just wanted to ask one out of the way thing, in this "remote" environment of interview how we can present our the system design in a better way? Is there any website like whimsical or any other way you would like to suggest to make it easy to deliver our thoughts with the interviewer?

    • @ConceptandCoding
      @ConceptandCoding  11 месяцев назад

      For system design round, company so give white board online, where you can either draw or drag drop boxes.

  • @gnanajeyam6259
    @gnanajeyam6259 7 месяцев назад

    Thank you for this cheat sheet. This is very helpful.

  • @vineetchaurasia7460
    @vineetchaurasia7460 Год назад +2

    Thanks for this great content

  • @guruprasadkancharla5555
    @guruprasadkancharla5555 7 месяцев назад +1

    Ram is also needed for processing requests. Here you only considered memory needed for cache? Any estimations for that?

  • @tejasshaha6629
    @tejasshaha6629 Год назад +1

    Very good content👌❤. Thank you.

  • @codecrafts5263
    @codecrafts5263 2 месяца назад +1

    this was great

  • @teetanrobotics5363
    @teetanrobotics5363 Год назад +1

    Thanks for your amazing content Shrayansh. If possible, could you please make the videos in chronological order for the system design playlists. Also, if possible, maybe make a playlist for concepts of system design alongside these case study lectures. Thank you again for your awesome content

    • @ConceptandCoding
      @ConceptandCoding  Год назад

      Thank you and i am making Videos in order only. If you are learning HLD or LLD, start from bottom and then move Upward. I have mentioned in the Playlist description.
      Hope this helps

    • @teetanrobotics5363
      @teetanrobotics5363 Год назад

      @@ConceptandCoding yeah you should reverse the playlist I guess cause autoplay works forwards.😂

    • @ConceptandCoding
      @ConceptandCoding  Год назад

      @@teetanrobotics5363 true, my intention is to keep latest video on top

    • @teetanrobotics5363
      @teetanrobotics5363 Год назад

      @@ConceptandCoding but a new user is confused with this order. I took 2 days to figure out the whole thing was in reverse order

    • @ConceptandCoding
      @ConceptandCoding  Год назад

      @@teetanrobotics5363 is it. Does Playlist description is not shows by RUclips, let me check and correct

  • @ehtashammazhar3518
    @ehtashammazhar3518 8 месяцев назад

    How did you come up with the latency statistics, I am also ignoring other latency factor like network, load balancer and all, just keeping simple like server and cache but not able to relate with the stats like 95% of DAU request served in 5ms per request.

  • @Rock28099
    @Rock28099 4 месяца назад

    Is this topic important for freshers who are looking for sde-1 job?

  • @keshavKumar-le4df
    @keshavKumar-le4df Год назад +1

    Nice explanation

  • @pranjalranjansrivastava
    @pranjalranjansrivastava Год назад

    Around 05:27, it says that the estimation would not impact your design and is only intended to show the interviewer that you know these things. However, I find this to be slightly incorrect. They actually can impact your design during the interview. Think of an example where you do storage estimation. If your estimated storage values come out to be really low + based on other factors like the traffic, you might decide to shard / not shard a database or use one database over the other or even say that since the storage is low, it can even be put all in memory for faster access ( + persistence for durability). This is only one example of how things pan out, and there would be different tradeoffs or optimizations that can be introduced/rejected based on these estimations. Only for a superficial system design interview, it would not matter much.

    • @ConceptandCoding
      @ConceptandCoding  Год назад +1

      Hi Pranjal, as per my experience with the interviews mostly interview say that they need scalable system, millions of traffic+ geographically distributed.
      So for my case, estimation can never be small. So we have to design for huge distributed system.
      But if lucky and Interviewer says we are are not expecting much traffic, then lot of things already get easy but that's my experience with Interviews, so that's why made that statement. 👍

    • @pranjalranjansrivastava
      @pranjalranjansrivastava Год назад

      @@ConceptandCoding Certainly.. Scalability is only one aspect of any system, however. And a "scalable" system could both be "scalable" in terms of traffic or the volume of data. There could certainly be scenarios where the traffic is huge but inherently there isn't much data to store (leaving aside entirely stateless systems altogether), for e.g. : a hit counter microservice (only keeps track of an incremented counter but servers millions of rps) or a video-on-demand streaming service (where there would only be a limited set of videos). Additionally, data can essentially be divided across systems. An example of this could be a bunch of metadata in one database while bunch of other core service data in another (depending on the characteristics of the data). The estimations for these would again lead to different optimizations and tradeoffs for the types of data itself. It could even be the other way around, less traffic but huge data (probably due to a huge catalogue + strict redundancy requirements + reverse indexing + other optimizations). Although I get your point, I think there are two things here which cannot be generalized with one statement.

    • @ConceptandCoding
      @ConceptandCoding  Год назад +1

      @@pranjalranjansrivastava thanks Pranjal for the detailed explanation.
      The examples which you have taken, that totally make sense. Thanks for explaining and your feedback. Really appreciate it.

  • @viveksingh4801
    @viveksingh4801 Год назад +1

    Great Video !!!

  • @GaonkaEngineer123
    @GaonkaEngineer123 Год назад +1

    Awesome man!!

  • @abhishekranjan3599
    @abhishekranjan3599 Год назад +1

    Awesome sir 🙏🙏❤️😃

  • @ehtashammazhar3518
    @ehtashammazhar3518 8 месяцев назад

    @Sheryansh What is the estimation for DB server?

  • @riteshgoyal4630
    @riteshgoyal4630 3 месяца назад +1

    maja aa gya yarr padh ke

  • @sonalisinha325
    @sonalisinha325 Месяц назад

    Latency part is not clear

  • @tanvirahamed7781
    @tanvirahamed7781 Месяц назад

    How can I avail myself of the membership on this channel. I didn't find any join button. Would anyone be able to help me? I am from Bangladesh. Thank you.

    • @ConceptandCoding
      @ConceptandCoding  Месяц назад

      generally at channel home page you will find join button. If not, then you can opt for Udemy

  • @art4eigen93
    @art4eigen93 Год назад +1

    Which app and which tool are you using ? Onenote and wacom?

  • @palanimtech
    @palanimtech Год назад

    How to get the no. Of load balancer?

  • @darshgupta2935
    @darshgupta2935 5 месяцев назад

    Hi Shrayansh,
    how the last bit of latency is calculated? I mean if 2 requests can be served in 1 second and if we have 50 threads in a server...how can we say that we can server 100 requests per second? What is the relation between threads and seconds?

    • @vivekkumar9149
      @vivekkumar9149 4 месяца назад

      Here each thread is working independently and capable of serving 2 requests per second. Since he assumed one server has 50 threads that means the server is capable of serving 50*2 = 100 requests per second.

    • @lakshmanankanthi7158
      @lakshmanankanthi7158 3 дня назад

      @@vivekkumar9149 So that means the system has 50 cores? Wouldn't your assumption only be valid if the machine has 50 cores? Threads aren't the same as CPU cores

  • @rajshah9129
    @rajshah9129 9 месяцев назад

    how did u come with latency no. is it random or from above calculation ?

    • @ConceptandCoding
      @ConceptandCoding  9 месяцев назад

      I need to check the video, will update you, as far as I can recall, it's estimate or approx numbers

  • @Mr.FalseChecker
    @Mr.FalseChecker Год назад

    Thank you

  • @harshwalia8452
    @harshwalia8452 8 месяцев назад

    Hi shrayash, Can you please provide notes of all these videos that you have recorded

  • @JatinDixit-vc3qi
    @JatinDixit-vc3qi 2 месяца назад

    Too much ads Shreyansh..😢

  • @harshitagarwal2682
    @harshitagarwal2682 Месяц назад

    👍👍

  • @bikeshregmi2392
    @bikeshregmi2392 5 месяцев назад +1

    wow

  • @iMahboobAlam
    @iMahboobAlam 3 месяца назад

    superb explanation. 150524

  • @logicalrisi
    @logicalrisi 6 месяцев назад

    Bhai notes toh dediya kro😢

  • @GaonkaEngineer123
    @GaonkaEngineer123 Год назад

    Please don't make it private

  • @iqrarahmad59
    @iqrarahmad59 10 месяцев назад

    I prefer Hindi not English ( English is just a instruction language to me and most of the indians)

    • @ConceptandCoding
      @ConceptandCoding  10 месяцев назад

      :) but as an SDE apko English bahot help karegi team se Collab karne mein and aage badne mein buddy

    • @kaisnawa
      @kaisnawa 4 месяца назад +2

      I came here from US. English would reach a broader audience.

  • @iMahboobAlam
    @iMahboobAlam 3 месяца назад +1

    superb explanation @150524

  • @mrprime557
    @mrprime557 Год назад

    luchkudari luchkudari amazon sde2.... i wish he b layoff/......