Google SWE teaches systems design | EP2: single leader replication

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

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

  • @AntonioMac3301
    @AntonioMac3301 2 года назад +44

    bro no one is talking about this guy's humor, he is absolutely fucking hilarious LMAO

  • @paulsagar
    @paulsagar 2 года назад +21

    Among lots of bullsh*ts in RUclips, I found your content most articulate and rich. Keep up the great work!

  • @amrittwanabasu4709
    @amrittwanabasu4709 Год назад +17

    brooo, no one's talking about "my friends are giving me their loads constantly"

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

    The quality of your videos is exactly what I Want. most other channels overly simplify the topic. leaving me more confused.

  • @anupamdey4893
    @anupamdey4893 2 года назад +2

    I'd just like to say that you are doing brilliant work. Keep up the efforts. May you be blessed with millions of followers !!

  • @jelenamarusic3641
    @jelenamarusic3641 Год назад +4

    Jordan has an awesome system design channel

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

    9:30 key insight from comparing options: the best Replication Log is one that is at least: 1) Deterministic (outcome pre-determined), 2) invariant of any environment changes.

  • @alisleem7997
    @alisleem7997 2 года назад +2

    Great Video Man ! Much Love from Egypt . keep it up

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 года назад +1

      Wow! Glad to have you as part of the community, love the geographically diverse audience, and thanks for the feedback!

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

    It is worth noting that `Consistent prefix reads` problem arises only if all the writes are not ordered in time, which doesn't happen in case of a single-leader replication setup.

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

    I have to admit I googled Kate Upton after (actually during) this video...

  • @KratosProton
    @KratosProton 2 года назад +3

    Man those chats are very innovative 🤣

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

      I laugh out so loud at the consistent prefix read chats. "On my way!!"

  • @yuganderkrishansingh3733
    @yuganderkrishansingh3733 2 года назад +2

    Enjoy your content. Only 1 concern you mention that Write-ahead log is not scalable in case db engine changes but I think u r referring to extensibility which means easy to replace in case of new implementation whereas scalable means able to handle 1mil requests similar to the way handles 1k requests for ex.

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

    I will never think about replication the same way again kkkkkk

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

    I have a question - what do you mean by a node? I am confused because we're talking about DB replication here. Is a DB follower/leader referred to as a node in this context? Then when you said at 3:31 that "All clients send writes to new leader" - DBs arent smart to actually do that right? Who makes this change?

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

      When I say a node I mean a distinct computer. Could be a leader, follower, basically any two things that require a network call to communicate with one another.
      On a leader failover, we need to get a coordination service involved so that all replicas agree on who the new leader is. Clients can either ask an existing replica who the new leader is, or ask the coordination service itself.

  • @JayanthShankar81
    @JayanthShankar81 2 года назад +4

    Hey, great content! Can you share the links to all slides somewhere? The link you've posted below is pointing to only one video. Thanks for doing this. I'm learning a lot watching your videos.

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 года назад +7

      Of course, and glad you're learning - here's the link: drive.google.com/drive/folders/1ChodcbMZ4KqS9WP9gin4sLVdCsgD3uoE?usp=sharing

    • @JayanthShankar81
      @JayanthShankar81 2 года назад +1

      @@jordanhasnolife5163 Thanks a lot bro!

    • @paulsagar
      @paulsagar 2 года назад +1

      @@jordanhasnolife5163 I was about to request you for slides. Thanks for sharing!

    • @art4eigen93
      @art4eigen93 2 года назад

      @@jordanhasnolife5163 about to ask you this in another video and randomly found the links here. Thanks 👍👍

  • @TheMch92
    @TheMch92 2 года назад +4

    2:02 That's what she said

  • @dibll
    @dibll 2 года назад +1

    Excellent content. Quick question though - I got the understanding that the replication log conveys the changes to the followers, so once the follower reads the changes, follower has no clue of that log anymore. So if this the case how can replication log helps with follower failure , does it store a copy of log too?
    Also WAL is the way of storing logs(by appending changes) and Copy over SQL statements and logical logs are ways of storing those changes in that WAL. Is my understanding correct?

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 года назад

      Yes the follower has its own copy of the log so in the event of failure changes can be replayed

    • @dibll
      @dibll 2 года назад

      @@jordanhasnolife5163 Thank you.

  • @raunakchaudhary1982
    @raunakchaudhary1982 10 месяцев назад +2

    Can you share a pdf or so for all your videos so that we can have a quick revise before interviews. Just a request feel free to ignore it.

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

    Hi Jordan, can you pls share your PPT link for this and other videos?

  • @DickWu1111
    @DickWu1111 2 года назад +2

    Really good content!! Thanks for making them.
    One question about "Consistent Prefix Read"
    you mentioned "causal relationship between writes lost because preceding write takes longer to replicate (due to being on different partitions)".
    If client only writes to the leader node, how would writes be on different partitions?

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 года назад

      Single leader replication means that per partition, there is one leader. You can have partitioning and replication at the same time!

    • @DickWu1111
      @DickWu1111 2 года назад

      @@jordanhasnolife5163 Thanks! Okay this totally makes sense now.

  • @shreyanshtiwari3141
    @shreyanshtiwari3141 4 месяца назад +1

    thank you for this channel

  • @bramhaastra333
    @bramhaastra333 2 года назад +1

    Great Content. Thanks for making them.
    My Question: Regarding Causal relationship writes on different partitions. Does that mean that one database can be run on multiple partition on the same machine? And can those partitions be different physical disks or logical partitions?

  • @AlkaGupta-zs9sv
    @AlkaGupta-zs9sv 7 месяцев назад +1

    where do I read in depth about the concept in video?

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

      I'd start on Google and go until you can't

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

      @@jordanhasnolife5163 thanks a lot! Finally I found high quality system design video that teaches concepts so well. BTW someone recommended you on Reddit.
      I love your jokes, keep sending more!

  • @coderaven1895
    @coderaven1895 9 месяцев назад +1

    hey since i like your content and humour , i am pretty sure i will like the youtubers you refer too can you drop the channels you refer to study ?

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

      Well at this point I'm pretty limited on time to study but the channels that I did like were probably martin kleppman, Gaurav sen, code karle, any random conference that talks about what I want to hear

  • @guangyang6534
    @guangyang6534 2 года назад +2

    Thanks for creating this great content! I notice lots of the content are directly from ddia, maybe give some credit to Martin at the beginning😊

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 года назад +2

      Great point - I begin to deviate from his content around episode 15, but hopefully the suggested reading should allude to the fact that a lot of my knowledge comes from him :)

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

    By “partition” do you mean replica or is partition an orthogonal concept here?

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

      Nope, partitioning/sharding is different, I cover this later in the series

  • @aguiwang7876
    @aguiwang7876 2 года назад +1

    I have some confuses. Is it true that only leader is allowed to operate write, and slave is just for reading.

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 года назад

      That's correct - writes to leader, reads from any of the replicas

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

      @@jordanhasnolife5163 i think, this is not true.. in certain scenarios leader should also be able to handle the read.. for example, we talked of this as a possible to resolve RYOW problem

  • @9lofivibes
    @9lofivibes 2 года назад +1

    Also to add read databases and write databases could be different and even read database could have different schema that write database schema.

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

    Hi Jordan,
    Can you also share the ppt you used in this video

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

    Loved it!

  • @cdgtopnp
    @cdgtopnp 2 года назад +1

    Your slides would make great reference notes. Do you think you could share those too?

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 года назад +2

      docs.google.com/presentation/d/1tkz2iksFao7_yaUXuKAvcvgKNlh_xYTRQJmKwYT0GHI/edit?usp=sharing

  • @davel3188
    @davel3188 2 года назад +1

    Pretty good bro, solid fundamental knowledge, good presentation

  • @hakariRonaldo
    @hakariRonaldo 4 месяца назад +1

    I come here for system design(NO), awesome humour(Yes)

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

    Thank you!

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

    thanks

  • @ShivangiSingh-wc3gk
    @ShivangiSingh-wc3gk 7 месяцев назад +1

    You have friends what!!!!!

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

    this is the type of nerd i mean when I say nerds are hot

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

      ^Conclusive proof that being a FAANG engineer makes you 10x hotter

  • @thanujakumar5573
    @thanujakumar5573 11 месяцев назад +1

    I thought you are a software developer and has no friends.