19: Notification Service | Systems Design Interview Questions With Ex-Google SWE

แชร์
ฝัง

ความคิดเห็น • 36

  • @idiot7leon
    @idiot7leon 2 หลายเดือนก่อน +7

    Brief Outline
    00:00:59 Notification Service
    00:02:12 Problem Requirements/Capacity Estimates
    00:03:56 Fan Out Design Pattern
    00:06:38 Idempotence
    00:08:17 Idempotence Continued
    00:11:17 Idempotence Continued
    00:12:16 Bloom Filters
    00:14:15 Client Connections to Notification Server
    00:16:56 Final Diagram - Notification Service
    Thanks, Jordan~

    • @maxvettel7337
      @maxvettel7337 2 หลายเดือนก่อน +1

      Thanks for this work. Really helpful for me

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 หลายเดือนก่อน +1

      Leon is the real mvp

  • @maxvettel7337
    @maxvettel7337 2 หลายเดือนก่อน +1

    Ive been waiting for this video. This is one of the basic services

  • @birmaduwakessa2344
    @birmaduwakessa2344 2 หลายเดือนก่อน +3

    Love your videos Jordan! What are your thoughts on creating videos where you build simple projects/programs that implement certain concepts from your systems design playlist? I personally can't find other channels that teach these concepts as well as you, and I feel like doing so would be pretty complementary to your already quality content.

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 หลายเดือนก่อน +1

      Hey! It's definitely something that I've considered - when I run out of shit to do/post in a bit I may turn in that direction :)

  • @nodemodules
    @nodemodules 2 หลายเดือนก่อน +4

    My third favourite system design TH-camr just uploaded, sweet!

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 หลายเดือนก่อน +2

      Hell yeah brother

    • @nepo2616
      @nepo2616 2 หลายเดือนก่อน +2

      What are the the other ones?

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 หลายเดือนก่อน +7

      @@nepo2616 Jordan (with a life), and Jordan (with 50% of a life)

    • @spaceofmiah9221
      @spaceofmiah9221 4 วันที่ผ่านมา +1

      Lol 😂

  • @kaiqi462
    @kaiqi462 หลายเดือนก่อน +1

    Really appreciate recording and sharing these videos. They are super helpful. For idempotency part, I think we can give each message (per user dimension) one increasing number and keep maximum number on server side. By comparing service and client side's number, we can know if any message is missing or not.

  • @sudhirreddyemmadi5733
    @sudhirreddyemmadi5733 4 วันที่ผ่านมา +1

    You forgot about 2nd requirement - Offline clients must be able to receive notifications later

    • @jordanhasnolife5163
      @jordanhasnolife5163  4 วันที่ผ่านมา

      Throw the notifications to a DB cache per user (so partition based on userId). Same deal as Twitter basically.

  • @harikareddy5759
    @harikareddy5759 2 หลายเดือนก่อน +2

    Jordan, another great video, thank you!
    Would you be interested in doing the system design of a Google Sheets like application(not the collaboration functionality that you have already covered in Google Docs) but with features more closely resembling Airtable/Causal, focusing on real-time formula application?

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 หลายเดือนก่อน +1

      Hey Harika! I'd have to think about this one a bit, versus whether it's just we have a formula per cell and then it gets applied on all client devices

  • @Rayyankhantheboss
    @Rayyankhantheboss 2 หลายเดือนก่อน +1

    Hey Jordan, watched all your videos...blah blah blah... great content love it blah blah blah... funny descriptions blah blah blah... now that all the formalities have been taken care of (lol I promise I'm a fan), could you make the OneNotes for all the Sys Design Interview problems accessible as well please? I love going back to the playlist 1.0 powerpoints for concepts, but it would also be really nice to have these oneNote accessible too - ideally in a way I can clone and scribble lotion and tissue boxes on and oh annotate stuff.
    Willing to send feet pics if you get the job done before my interviews :P

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 หลายเดือนก่อน +2

      Haha - appreciate the formalities. Going to do the actual questions themselves when the series is done, have been punting on the concepts. Have some time today, so I'll have to see if I can clutch up.

    • @ishakalra2089
      @ishakalra2089 2 หลายเดือนก่อน

      @@jordanhasnolife5163 +1 to OP. Really love your content and access to slides would be super helpful. Thanks a lot in advance!

  • @John-nhoJ
    @John-nhoJ 2 หลายเดือนก่อน +2

    Jordan - an even better approach to the fanout would be to store the last-sync time with the client and the created_at timestamp for the notification.

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 หลายเดือนก่อน

      You'd need that timestamp per flink node as Kafka is only ordered per partition

  • @TheDEMMX
    @TheDEMMX หลายเดือนก่อน +1

    Thanks for the video.
    How feasible would that be to build reverse mapping at scale? Sounds like expensive operation + at what cadence, we will either spent a lot of compute rebuilding revery sharding or there will be a signiy lag beyey users subscribing and starting to recrcey notifications for that topic.

    • @jordanhasnolife5163
      @jordanhasnolife5163  หลายเดือนก่อน

      I really don't think it would be super significant, we're really just going through a load balancer and into Kafka- and from there we can receive the message in flink and we're good to go

  • @varshard0
    @varshard0 2 หลายเดือนก่อน +1

    Thank you.

  • @rakeshvarma8091
    @rakeshvarma8091 24 วันที่ผ่านมา +1

    Hi Jordan
    I have a very basic question.
    Are we building the notification service for all notifications (from all applications) for all users ?
    In the final diagram, you have mentioned that flink node receives data from 2 sources.
    1. Topic subscriptions of user. Basically topic_id --> userId's.
    2. Messages from Notification Queue. topic_id --> message.
    Using above 2 sources, how does the flink sends the real time messages ? Some messages are user specific right for example one to one pings.
    Sorry if this sounds silly.

    • @jordanhasnolife5163
      @jordanhasnolife5163  23 วันที่ผ่านมา

      Yeah. I'm not very concerned with one to one pings in this video. If every user is connected to one notification server, we can just figure out where they are connected to and send the message there.
      In the general case, flink figures out the user IDs the message needs to go to, and via a load balancer/proxy sends it to all of the proper servers which then forward them to users via we sockets

  • @GopiNathSah-ks4bo
    @GopiNathSah-ks4bo หลายเดือนก่อน +1

    Jordan, Can you use the bigger mouse pointer, that way we can track, which box you are talking about? Thanks

    • @jordanhasnolife5163
      @jordanhasnolife5163  หลายเดือนก่อน

      I'm using an apple pencil, to my knowledge there is no mouse pointer.

  • @TechPeck-zm9pe
    @TechPeck-zm9pe 2 หลายเดือนก่อน +1

    Why is the subscription change events topic sharded on user id? I expected it to be on topic id as this stream needs to be joined with the events in notification queue which are also partitioned on topic id

  • @surajkumardwivedi7139
    @surajkumardwivedi7139 2 หลายเดือนก่อน +1

    only fans i m 🤣🤣

  • @emilybrowno
    @emilybrowno 2 หลายเดือนก่อน +2

    Video Editing is too low 👎👎👎👎
    Edit the video in a good style.
    Add nice b-roll animation when you are speaking or explaining something. This will increase visualization.
    Put proper subtitles, effects, transitions, and colors in the video.
    Insert the B-Roll (footage and animation) very well because it is absolutely low in your video.
    Do all this and then see how the video doesn't turn out good. 🍏

  • @John-nhoJ
    @John-nhoJ 2 หลายเดือนก่อน +1

    First