Twitter / Newsfeed System Design Interview Question

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • This is a solution to the classic Twitter / Newsfeed system design interview question. It addresses the main problems most interviewers would want to see handled, as well as diving into additional areas that may be discussed in the interview.
    ⏰ Time Stamps ⏰
    0:00 Functional & Non-Functional Requirements
    0:25 Scale estimates
    2:03 Data model
    3:41 API design
    6:08 Feed publishing
    9:05 Architecture overview
    10:50 Additional discussion points
    Preparing for a technical interview?
    👉 Checkout techprep.app/yt to nail your next interview
    #techprep #systemdesign #twitter #x

Komentáře • 40

  • @antonignatenko7776
    @antonignatenko7776 Před 5 měsíci +7

    this is literally what i’ve been looking all over youtube
    finally
    mate need more of this

    • @TechPrepYT
      @TechPrepYT  Před 4 měsíci

      Appreciate the support! Could I use this comment on the website?

    • @antonignatenko7776
      @antonignatenko7776 Před 4 měsíci

      @@TechPrepYT definitely!

  • @findtharun
    @findtharun Před 17 dny

    Your videos are truly underrated - crisp and clear. I believe your channel has a lot of potential, and your website has a wealth of content that could be very helpful for my interview preparations.
    kudos to your expertise and hard work in content creation!!

    • @TechPrepYT
      @TechPrepYT  Před 16 dny

      Glad you like the video format! Really appreciate the kind words!

  • @JasonChen-ue9vm
    @JasonChen-ue9vm Před 4 měsíci +3

    nice content,you'll have countless followers in future

  • @9_9_2
    @9_9_2 Před 4 měsíci

    The table is getting another beating. Great video!

  • @user-xc7rp5pr2l
    @user-xc7rp5pr2l Před 5 měsíci

    Interesting breakdown ❤

  • @runzhou3070
    @runzhou3070 Před 5 měsíci

    great content, precise and elegant

    • @TechPrepYT
      @TechPrepYT  Před 4 měsíci

      Appreciate the support! Could I use this comment on the website?

  • @paulywalnutz5855
    @paulywalnutz5855 Před 5 měsíci

    im literally doing system design at uni now and this is just golden content

    • @TechPrepYT
      @TechPrepYT  Před 4 měsíci

      Appreciate the support! Could I use this comment on the website?

  • @adriablancafort
    @adriablancafort Před 5 měsíci +1

    Very valuable content!
    You've done tiny url, a social media and a search engine. Now it's time for an in depth ecommerce system design video. I would love to see that!

    • @TechPrepYT
      @TechPrepYT  Před 5 měsíci +1

      It's on the roadmap don't worry 🤝

    • @adriablancafort
      @adriablancafort Před 5 měsíci +1

      @@TechPrepYT Great. We would love to see how you discuss the design of the rest api and how you structure the architecture of all the different services for the cart, product listings, user accounts, whishlist, etc. I would really love if you can talk a bit about the product recommendation system, infinite scroll pagination in the rest api, etc.

    • @TechPrepYT
      @TechPrepYT  Před 5 měsíci

      Yes the video will definitely cover all of those services, but it mightn't just be a REST API. I most likely will also include a GraphQL API to handle the nested nature of some of the data (e.g. products) as well as pagination etc.

    • @adriablancafort
      @adriablancafort Před 5 měsíci

      @@TechPrepYT Cool! Can't wait.

  • @NamalJayathunga
    @NamalJayathunga Před 5 měsíci

    Your content are amazing. Thank you. I want to learn server and db scaling deeply.

    • @TechPrepYT
      @TechPrepYT  Před 4 měsíci

      Appreciate the support! Could I use this comment on the website?

  • @flobuilds
    @flobuilds Před 5 měsíci +2

    Great video but maybe a little extra improvement could be to disconnect the user from the profile. So have one sso service for handling users (security, login/register, user info,... ) and one profile service for storing the profile info like in this case the follower stuff etc. and use this for the other Services and reference the connected user id in the Profile. This could allow for a user to have multiple profiles on a single account and to have the whole security logic be somewhere else for better Performance and maybe when creating a new system to use the same sso for login with your account

    • @TechPrepYT
      @TechPrepYT  Před 5 měsíci +2

      Great comment! Yes 100% agree this would be a very important service to implement to make the system more robust and extensible. If you were using a cloud provider they have services like AWS Cognito which would help you implement this. This is definitely something worth including in this system design!

    • @flobuilds
      @flobuilds Před 5 měsíci

      @@TechPrepYT thanks for the reply

  • @AkaThePistachio
    @AkaThePistachio Před 5 měsíci

    Can see your channel growing big with content like this, Im a recent grad of computer science strugging with technical interviews so stuff like this is really helpful

    • @TechPrepYT
      @TechPrepYT  Před 5 měsíci

      Appreciate the kind words! If you email techprepbusinss@gmail.com, I can give you free access to techprep.app if you want!

    • @AkaThePistachio
      @AkaThePistachio Před 5 měsíci

      Yeah will do that would be great! I find myself feeling like a bit of an imposter I managed to get a first but I struggle with stuff from my 1st year so been trying to go back over this stuff so I dont get caught out in interviews@@TechPrepYT

    • @TechPrepYT
      @TechPrepYT  Před 4 měsíci

      Appreciate the support! Could I use the top comment above on the website? And also don't hesitate to send the email!

    • @AkaThePistachio
      @AkaThePistachio Před 4 měsíci

      Yeah sure @@TechPrepYT

  • @cheeto4950
    @cheeto4950 Před 5 měsíci

    Amazing and educational

    • @TechPrepYT
      @TechPrepYT  Před 4 měsíci

      Appreciate the support! Could I use this comment on the website?

  • @iamgabrielsoft5891
    @iamgabrielsoft5891 Před 5 měsíci

    This was cool
    Was expecting some Machine learning aspect

  • @agb2557
    @agb2557 Před 5 měsíci

    Thank you for your videos, they’re really informative. You deserve many more subscribers!
    Just a small bit of feedback, there some background noise like tapping which is a tad jarring when using headphones.

    • @TechPrepYT
      @TechPrepYT  Před 5 měsíci +1

      Thanks for the feedback! I'll try to improve it in the future 👍

  • @b3arwithm3
    @b3arwithm3 Před 3 měsíci

    Great solution. I didn't fully get how the hybrid push and pull model would work. Let say i follow 10 users and 2 of them have huge followers. It seems the system would build my feed with tweets from the 8 less popular users I follow. Then what is next when I retrieve my feed? Can you please elaborate more? Thank you

  • @bishwanayak
    @bishwanayak Před 5 měsíci

    In this Data model, should we keep followers in a different table? This would make followers table heavy if we keep all the users data in this table, retrieval would be time taking.
    What if we maintain a column in user table to keep the list of followers?

  • @dibll
    @dibll Před 5 měsíci

    How does the tweet service know which cache server to store a particular user tweets into in a push model?

  • @vladostema
    @vladostema Před 5 měsíci

    Interview question for 600$ month

  • @lawrenceo3665
    @lawrenceo3665 Před 4 měsíci

    *promosm*

  • @maez4315
    @maez4315 Před 5 měsíci

    nice explanation dude

  • @labadepradip7734
    @labadepradip7734 Před 5 měsíci

    nice explanation and content is good

    • @TechPrepYT
      @TechPrepYT  Před 4 měsíci

      Appreciate the support! Could I use this comment on the website?