System Design Interview - Distributed Message Queue

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ •

  • @stillmattwest
    @stillmattwest 2 роки тому +83

    This was the first video I'd seen from this channel. This is some next-level system design content. Way more in-depth than other videos I've seen. Unfortunately, it doesn't look like there have been any recent uploads, which is really too bad.

  • @suzi3245
    @suzi3245 Рік тому +1

    Each word in this video is a golden word. Make sure you don't skip or neglect it. Thank you so much

  • @debasishnayak5576
    @debasishnayak5576 5 років тому +18

    Normally I play videos in 1.5x or 2x. Your videos have so much information that I am afraid of losing some fundamentals if I play in 2x. Outstanding quality. Please keep making such videos.

  • @vasilyvlasov3255
    @vasilyvlasov3255 2 роки тому +28

    This is absolutely the best content on UA-cam on the system design topic! No "scratching the surface" bullshit, but rather very in-depth and concrete explanation on how to navigate successfully through the system design interviews. Thank you Mikhail for your great efforts! Большое спасибо, Михаил! One thing bothers me though, there haven't been any recent updates on the channel. I'm pretty sure, all the people here will appreciate and support if Mikhail decides to continue his endeavours and uploads new videos! Anyway, thanks a lot!

  • @adityabahuguna6815
    @adityabahuguna6815 5 років тому +188

    Appreciate your efforts on aggregating and delivering such quality content in such a lucid manner. I don't think there is better content than this anywhere on youtube especially for system design topics. Wow ! (Y)

  • @jhnmn
    @jhnmn 5 років тому +37

    I almost never comment on UA-cam but this undoubtedly deserves an exception. Thank you for the superb quality content you’ve put together. I wouldn’t be surprised if this series becomes the de facto video resource for systems design and architecture interviews. Hope you keep uploading!

  • @rahulnath9655
    @rahulnath9655 Рік тому +1

    this is the best video for systems design I've ever watched. I listened to it at 50% speed to write down every word whereas I usually watch YT vids at 1.5x -- each sentence was invaluable.

  • @SudeeptaSood
    @SudeeptaSood Рік тому +3

    can't thank you enough for this video. All of these components are building blocks and the interviewer can dig deep as to how the requests are handled from client to server. Awesome video

  • @jamesyin3220
    @jamesyin3220 2 роки тому +2

    This is the best content on system design I've ever seen. Please consider resuming the journey! We'd love to ride along!

  • @ShivaSomapur
    @ShivaSomapur 2 роки тому +1

    I don't think any other youtube video on System Design goes this deep into explaination. Thanks for your efforts in bringing these videos to all of us.

  • @deephorse6110
    @deephorse6110 3 роки тому +3

    Thank you for summarizing precisely about what can be covered in a 40 minute time limit. Knowledge is one part which is built over learning and experience. Your video really helps to focus on structuring and expressing the knowledge in a coherent manner. Thank you.

  • @thunrou
    @thunrou 4 роки тому +1

    Mikhail is the best. His system design videos are systematic and top notch with respect to quality and crispness. Presenting how to finish a complete design in 35 to 40 mins Wow, this is a great feat and only way for us. Prior to watching these videos my ideas and presentation is messy and dis-organized, but these videos gave me the basic sense what is expected in System Design and how to approach it. I take down the notes while watching the videos and try to apply these principles to other interview questions. This is greatly helping with my preparation. Can't thank you enough Mikhail, you are one of my best teachers.

  • @mostinho7
    @mostinho7 Рік тому +1

    5:10 load balancer availability/single point of failure, can assign multiple A DNS records for our domain (multiple IPS
    ) when we want multiple load balancers
    8:00 usd cases for frontend service
    9:15 request deduplocation to achieve exactly once or at most once semantics (the ack response could be lost when sending back to user, so user will retry and we don’t want to process duplicate requests that we already housed)
    12:00 reusable components for other system designs

  • @jasonmeyer495
    @jasonmeyer495 8 місяців тому

    I wish this guy was still making these videos. By far the best of the system design interview content out there (I've watched them all, lol).

  • @jayendrasingh6580
    @jayendrasingh6580 2 роки тому +1

    These videos are best resource among all I have gone through. I am surprised, why this channel is not posting any more videos. Good Work and thank you !

  • @yooos3
    @yooos3 Рік тому +1

    wow! This is so to the point and even the duration of the video is as good as an actual interview discussion! Touched so many "must know" topics!

  • @Dragoon77
    @Dragoon77 5 років тому +22

    I've watched the whole series already, thanks for the great quality content! looking forward for more

  • @vcfirefox
    @vcfirefox 2 роки тому +3

    I bought your course. Arguably the best investment I made for system design courses so far. Thanks for putting together contents and explaining them so lucidly. I look forward to other two modules.

  • @pramodsingh4668
    @pramodsingh4668 5 років тому +3

    I love the way you dive in every component one by one.

  • @akhtarmnnit
    @akhtarmnnit 4 роки тому +1

    I have seen a bunch of youtubers for system design interview...this one is one of the better ones...good way of using graphics while talking instead of mundane approach of heavy talking and using a whiteboard....Great job buddy...I am gonna explore all your video now

  • @HellSamael
    @HellSamael 3 роки тому +1

    I have been following some system design channels on youtube and this one is by far the best. Well structured, it discusses tradeoffs, solutions are clear.... In one word, AWESOME! Thank you very much.

  • @digitalkind
    @digitalkind 5 років тому +23

    13:17 Strictly speaking, using a database as a backend message store is a valid option (because database = storage engine + high level type system). The problem is that FIFO message ordering semantics, that is usually expected from queues, is not easily achievable on the top of off-the-shelf databases. Because the latter are usually designed for a different query/update patterns than it's common for queues. But some databases can handle this custom case perfectly, and some queues (Kafka) are even positioning themselves as a databases.

    • @junfu8695
      @junfu8695 2 роки тому

      mysql auto increment id could be an option to implement FIFO queue. Queue name could be a secondary index, and auto increment id is a primary key.

  • @mukesh_srivastav
    @mukesh_srivastav 4 роки тому +2

    It is full of quality content, It took me around 2-3 hours to completely watch along with preparing notes for this video. And 9 pages of notes it is, initially I thought it would be in 3-4 pages only. It's full of rich content, that I had to note everything down. Thank you. I am looking for a better way to prepare for System Design questions. With this speed, I am not sure how much time It will take for me.

    • @SystemDesignInterview
      @SystemDesignInterview  4 роки тому +4

      Hi Mukesh. You are right, preparation for a system design interview is a lengthy process. And it greatly depends on the level you plan to apply and your background.
      Just take one step at a time. First, try to learn about concepts without going too deep into each one of them. Otherwise, you will find yourself traversing a very deep graph of various interconnected concepts. Second, go deeper with every next iteration, if time allows. Third, use your daily work as a constant source of knowledge. Ask yourself how things in your project/application work. And do not stop asking yourself until you get a pretty solid understanding of a particular feature.
      It is a big and a very good question you've raised. I should, probably, create a video on how to prepare, depending on how much time one's have.

    • @mukesh_srivastav
      @mukesh_srivastav 4 роки тому

      @@SystemDesignInterview Thank you so much, Mikhail. I will follow these tips. Really informative.

  • @jmitesh01
    @jmitesh01 5 років тому +7

    Summary(notes):
    1. Problem statement: Producer sends data and exactly one of the consumers gets the data
    2. Resolving ambiguity in the problem statement by asking questions such as scale, priority, and so on...
    3. Just focus on the core set of requirements - sendMessage(messageBody), receiveMessage()
    4. SLA numbers for the non-functional requirements
    5. Components: LB, Control Plane(Metadata-Service), Data Plane-1(Frontend), Data Plane-2(Back-end)
    6. FE: Required Cross cutting concerns such as billing, throttling, the most important - routing to Backend since the Backend is stateful and so on.
    7. Metadata Service: Caching Layer for routing information and metadata ( high consistency required in case of very few writes, R/W Ratio)
    8. Backend Service: API Handling Layer, Storage and so on. Since Backend has to be HA and fault tolerant as it requires a consensus service like ZooKeeper or In-Cluster and Out-Cluster management strategy.
    ----
    Extend the above design of queue creation with queue deletion, message deletion, message replication, delivery semantics( exactly once delivery not supported because it requires 2PC) and Pull vs Push messages, security and monitoring.
    ---
    Scalability Bottlenecks, use-case exntensability and use-case supported/limitations?

    • @SystemDesignInterview
      @SystemDesignInterview  5 років тому +1

      Hi Mitesh. Concise and still captures the key ideas. Great summary.

  • @jackson1012-x8e
    @jackson1012-x8e 4 роки тому +1

    This is the best distributed message queue system design I have seen so far. Many good concepts introduced and summarized , I feel it very helpful by using it as a guideline and read the other documents for more details such as the AWS SQS document. Looking forward to more content in the future.

  • @rishabhjain2404
    @rishabhjain2404 4 роки тому +9

    thank you for working on the subtitles, makes it easier to consume your good content

    • @SystemDesignInterview
      @SystemDesignInterview  4 роки тому +7

      Sure, Rishabh! Thanks for letting me know that subtitles help. Every next video will have subtitles as well.

    • @rishabhjain2404
      @rishabhjain2404 4 роки тому +4

      Thanks Mikhail. You have excellent english fluency. I am just used to different pronunciations of certain words.

  • @babadun36
    @babadun36 5 років тому +20

    This is more just Distributed MQ. The video covers the fundamental approaches in modern data intensive distributed systems.

  • @bhaveshssharma8826
    @bhaveshssharma8826 4 роки тому +3

    Best course available on the Internet.

  • @TyzFix
    @TyzFix 2 роки тому +1

    I am expecting you write a SD book that gives us the same amount of useful information as here. outstanding job!

  • @victormartins-software3912
    @victormartins-software3912 4 роки тому +11

    I can’t thank you enough, I was really struggling to grasp these topics and your explanations really helped me put it all together 🙏 excellent work!

  • @mputcha
    @mputcha 4 роки тому +1

    Just the right amount of detail. Surprised it has fewer views. Shows view count is not very reliable. Thank you for the great effort

  • @hyunminkim3315
    @hyunminkim3315 5 років тому +5

    Very thorough! Really appreciate your hard work. I can tell your channel will become huge for engineering resources.

    • @SystemDesignInterview
      @SystemDesignInterview  5 років тому

      Thank you, Hyunmin. Appreciate your feedback and words of encouragement!

  • @niko79542
    @niko79542 5 років тому +2

    Hands down best System Design Channel on youtube. I cannot wait for more videos!

    • @SystemDesignInterview
      @SystemDesignInterview  5 років тому

      Thank you, Niko, for the feedback. Much appreciated! Working on a new video right now.

  • @akshitg
    @akshitg 4 роки тому +1

    The quality of the videos that you make are really make. Please continue making such videos.

  • @harjos78
    @harjos78 4 роки тому +1

    This is pure GEM!.. Amazing crystal clear explanation on Distributed computing concepts. Best tutorial till date on whole of youtube for system design prep material... Great work

  • @MrThepratik
    @MrThepratik 4 роки тому +2

    This is by far the best curated content on system design
    Wish I had come here before . Keep up the good work

  • @farslan
    @farslan 2 роки тому

    This video is great quality. I think sequential writes should have been suggested in the video. This seems to me the best way to achieve high throughput.

  • @deathbombs
    @deathbombs 2 роки тому +2

    17:08 to clarify option 2, queues are basically each a cluster in this case(each cluster contains a set of queues). Instances are the replications.
    Interestingly replication for inmemory hosts/instances are handled similarly to nosql nodes

  • @jamess5330
    @jamess5330 2 роки тому

    Very helpful! Another super effective way to prepare system design interviews: Do mock interviews with FAANG engineers at Meetapro.

  • @harshdubey9951
    @harshdubey9951 4 роки тому +1

    Hi Mikhail, excellent video on the system design course series. Very nicely presented & explained.
    One of the best channel.

    • @SystemDesignInterview
      @SystemDesignInterview  4 роки тому +1

      Thank you, Harsh, for the kind words! And for being active on the channel (actively commenting)! Much appreciated.

  • @donaldbough3445
    @donaldbough3445 2 роки тому

    Amazing video series that goes beyond high level fluff, thank you so much!

  • @ron234ghi
    @ron234ghi 2 дні тому

    I'm surprised I've not found this sooner. One of the best resources for System Design. Sadly, I think Mikhail has stopped making the content. I hope you read this and do make more awesome content! Subscribing in case you do!

  • @culsumu
    @culsumu 2 роки тому +1

    Your videos are Superb !
    Most useful videos on System design.
    Please start making more videos like this !
    More on each component details which helps in System design :) !

  • @chiragr1336
    @chiragr1336 4 роки тому +2

    Thanks allot @Mikhail. Your videos are so fun and easy to watch. I feel it's one of the best specifically for system design and you sound like some Russian Pro coder to top it;) I request you to make a video about all the possible components (load balancers, CDN, etc) in a system design interview that will ever be used, because you keep using few different components for different problems. If we get to know all the components, then we too can arrive at a better solution. Thanks for the great content and keep creating new videos! 👍

    • @SystemDesignInterview
      @SystemDesignInterview  4 роки тому

      Thank you for the kind words, Chirag! I have been thinking about the same for a while. And there are ideas how to address this. Just need to find more spare time to realize all these ideas ((

  • @riteshpatel16
    @riteshpatel16 4 роки тому +1

    Thank you for all the hard work and such a great explanation of complicated topics. This is way superior to other paid content. I would love to see video on API design that covers how and what. For example, question that say design an API to upload photos from iOS, how do you go about it?
    What are the good characteristics of an API? What are key components you need to think about while designing an API and so on.

  • @jackieh2195
    @jackieh2195 5 років тому +7

    Please keep uploading! This is great! Thanks

  • @YashRaithatha1989
    @YashRaithatha1989 5 років тому +2

    Just awesome ! Your approach to problem solving is very generic. Really liked it and keep posting such fantastic system design interview questions. This is the best material i have seen till date on the topic.
    Thanks a lot.

  • @swapniljain3459
    @swapniljain3459 4 роки тому +2

    Great work and Explanation . Thanks a lot. This is the best explanation and walk through to prepare for a System design interview.

  • @BitsnBytes8
    @BitsnBytes8 2 роки тому +1

    Very good content. Enjoyed going through the video. Thank you. Hope you continue this series

  • @austinkim7804
    @austinkim7804 Рік тому

    Finally finished going through your videos. Thanks so much!

  • @ryany1111
    @ryany1111 3 роки тому +1

    Thank you so much for your videos. I have watched all videos in your channel. Waiting for your distributed database video. Hopefully you are still running this channel

  • @saumittrasaxena2877
    @saumittrasaxena2877 4 роки тому +9

    This is quality content. Really appreciate your efforts.

  • @reyazahmed9320
    @reyazahmed9320 5 років тому +11

    Great content. Thanks a lot. Just one feedback: Would have been great had there been subtitles as I find a bit difficult to get the words.

    • @SystemDesignInterview
      @SystemDesignInterview  5 років тому +9

      Hi Reyaz. Thank you for the feedback! Point taken, I will try to add subtitles relatively soon.

    • @harshdubey9951
      @harshdubey9951 4 роки тому +3

      Hi Reyaz, you can use inbuilt feature for subtitles provided by UA-cam player.
      Click on the icon labelled with cc while playing the video.
      hope it helps until Mikhail provides the subtitles.
      Thanks

  • @dharmendrabhojwani
    @dharmendrabhojwani 5 років тому +4

    Why this Guys is not giving more videos. We should in fact invest some money from our pockets and pay him to make such kind of videos rather than spending money individually on some courses.

    • @SystemDesignInterview
      @SystemDesignInterview  5 років тому

      Hi Dharmendra. I am working on a new video right now. I took a big topic this time. Plus, was on vacation for a couple of weeks. So, a little bit behind. Hopefully, you will like the upcoming video. It covers many concepts required for a successful system design interview and system design in general.

  • @madhukarm1319
    @madhukarm1319 3 роки тому +1

    Thank you! This covers a lot of background. One thing i feel should have been covered how strict message ordering is achieved across partitions?

  • @ankitphophalia9849
    @ankitphophalia9849 4 роки тому +1

    Just awesome...your approach to solving a system design is amazing. Great content. Thank a lot for your efforts.

  • @ashwinkumar2126
    @ashwinkumar2126 4 роки тому +3

    Really comprehensive coverage of the topic! Although, would've loved to see more discussion on Asynchronous out-cluster replication. It's tricky to design, eg. what happens when you receive a get request while the data hasn't fully replicated across hosts in a cluster? can we hit all hosts in a cluster? what happens if we receive a get request when the message deletion replication is in progress etc.

  • @rahuljain070817
    @rahuljain070817 4 роки тому +1

    One of the best system Design video I have watched, Awaiting more videos.

  • @YeteshChaudhary
    @YeteshChaudhary 5 років тому +1

    It would be helpful if you also give a brief intro to RabbitMQ, Kafka and Kinesis/SQS. You talked about SQS briefly, that was really appreciative!

    • @SystemDesignInterview
      @SystemDesignInterview  5 років тому +1

      Hi Yetesh. Sounds like a topic of its own. Let me add this to the TODO list.

  • @chickentikkasauce1301
    @chickentikkasauce1301 5 років тому

    For monitoring, it’s be helpful to monitor size of the queue. Also number of messages getting queued or dequeued for each host at the queue level.

  • @shreyasns1
    @shreyasns1 3 роки тому

    Thanks for the video, had one suggestion on rate limiting. Token bucket is widely used and not leaky bucket.

  • @ThePrabhu1990
    @ThePrabhu1990 5 років тому +3

    This is excellent! Looking for more such videos.

    • @SystemDesignInterview
      @SystemDesignInterview  5 років тому

      Thank you. We are working on more videos. Feel free to subscribe to stay tuned.

  • @yuankailiu614
    @yuankailiu614 3 роки тому

    Reall enjoy the video, I wish I could upvote multiple times. One thing missing is how to persist message into file system.

  • @sonty76
    @sonty76 3 роки тому

    Really great content and well paced delivery. Waitiing for more content.

  • @HarpreetKaur-oj5eg
    @HarpreetKaur-oj5eg 8 місяців тому

    Brilliant content! Please start uploading again!

  • @wangjiprc
    @wangjiprc 5 років тому +2

    best system design video I had watched.

  • @omfromam
    @omfromam 5 років тому +10

    Great content! Thank you for making this. One thing that seems not clear (at least to me) ~min15-min17 you show the flow of the message from FE to backend node and to receiver. It is unclear how do you separate persisted information between MS (database) and in-cluster manager (ZooKeeper). Both seems to store mapping between Queue name and Leader Host. Do you really need to store this information in two places? How are they synchronized? Why would you need to keep this info in the MS in the first place? Isn't ZooKeeper enough for queue-to-node mapping?

    • @SystemDesignInterview
      @SystemDesignInterview  4 роки тому +4

      Both options are fine:
      1. When we store mapping in the Metadata service. Zookeeper is used for leader election and leader monitoring. And if leader changes, this information is propagated to the Metadata service.
      2. When we store mapping in Zookeeper. Zookeeper is highly optimized for reads.
      Anyway, this information is stored in one place. So that we avoid any synchronization between configuration storages and have a single source of truth.

    • @BitsnBytes8
      @BitsnBytes8 2 роки тому

      @@SystemDesignInterview Thank you for answering this question. I had the same doubt when going through the material.

  • @sudharshannd3497
    @sudharshannd3497 Рік тому

    Great video, but I think it should cover even more low-level details on how messages are stored in memory and retrieved using offset/invisible flag.

  • @ruhinapatel6530
    @ruhinapatel6530 2 роки тому +1

    Please make more videos..ur videos are gem

  • @leoxiaoyanqu
    @leoxiaoyanqu 3 роки тому +1

    Thanks a lot for your videos! Very helpful!
    I wonder if it's possible for you to have a mock interview video (e.g. you're on the interviewee side), covering things like what tools/apps would you use for real-world SDIs for better productivity, etc.

  • @SchartzRehan
    @SchartzRehan 5 років тому +1

    This is crisp and clear. Many thanks.

  • @rajanjha673
    @rajanjha673 2 роки тому +1

    Hey Jordan
    It’s almost 2 years we are waiting for your videos. I hope you’re fine?

  • @IDONTKNOWWHATTOKEEP
    @IDONTKNOWWHATTOKEEP 4 роки тому +1

    Really great content. Please keep uploading more videos!

  • @siddharthmanumusic
    @siddharthmanumusic 4 роки тому +1

    Such a great video with so much information! Many thanks!

  • @jamesbalajan3850
    @jamesbalajan3850 4 роки тому +1

    This design really reminded me of the Google file system.
    The metadata service + out-cluster manager is analogous to GFS's master server.
    The backend storage hosts are analogous to GFS's chunk servers.
    How replication is handled is like GFS.
    Just shows how these design principles are universal.

    • @SystemDesignInterview
      @SystemDesignInterview  4 роки тому +1

      Hi James. Agree with you. Conceptually, there are many similarities.

  • @michaelzeltser1581
    @michaelzeltser1581 4 роки тому

    Awesome video. The only thing that was a bit confusing for me was the part about in-cluster manager (zookeeper) - It wasn't clear if zookeeper is in fact the Metadata service or an additional component (along side MS).

    • @lch04thu
      @lch04thu 4 роки тому

      Yeah I was confused too. I posted a comment below, happy to discuss more.

    • @SystemDesignInterview
      @SystemDesignInterview  4 роки тому

      Hi Michael. Thanks a lot for the feedback!
      Here I left my view on why separation for out-cluster manager approach (multiple clusters) makes sense: ua-cam.com/video/iJLL-KPqBpM/v-deo.html&lc=UgwD2gh8ozvKz1wMqId4AaABAg.99gLjSiA1G79BLjjputJT6
      For the in-cluster manager approach, we can indeed use a single component. And the way Kafka uses Zookeeper proves this. As Zookeeper is "especially fast in "read-dominant" workloads." (from the official Zookeeper site).
      Although, I still prefer to separate these components for the in-cluster approach as well. There are many arguments in favor of one approach or another.

  • @GaneshManika
    @GaneshManika 3 роки тому +1

    Golden quality.

  • @ruslanda7690
    @ruslanda7690 5 років тому +6

    This is awesome!! Thank you!

  • @chickentikkasauce1301
    @chickentikkasauce1301 5 років тому +1

    Overall great video. Speaker is very knowledgeable.

    • @SystemDesignInterview
      @SystemDesignInterview  5 років тому

      Thank you, Chicken Tikka Sauce, for all your comments. To this and other videos. Much appreciated!

  • @ky5069
    @ky5069 4 роки тому +3

    Regarding how the front end service finds the leader backend nodes, you mention that this discovery would be done via metadata service. But in the in-cluster method, we actually have that information in the coordinator service (zookeeper). In this case, would the metadata service just be a thin wrapper for the coordinator service (in case of backend node discovery)?
    Thank you so much for sharing these videos Mikhail. (Also, I love that you mention several times that the interviewer is there to help us, I find it delightful to have that perspective, and definitely helps during the interview)

    • @SystemDesignInterview
      @SystemDesignInterview  4 роки тому

      Hi Suharto,
      Thank you very much for the feedback!
      Regarding your question, we can use either Metadata service or Zookeeper itself for storing and retrieving information about leaders. Please take a look at my answer here: ua-cam.com/video/iJLL-KPqBpM/v-deo.html&lc=UgxAE6YfMUj95phbLid4AaABAg.90QChp-3ylO93AokcEr3Bu

  • @jishilyu7998
    @jishilyu7998 2 роки тому +1

    Thank you! Old Bro!

  • @utsavmathur1478
    @utsavmathur1478 3 роки тому

    This is amazing, thank you so much! Very detailed explanation and exactly what I was looking for.

  • @bryanenglish7841
    @bryanenglish7841 2 роки тому +1

    Wow this is great stuff!

  • @gemtyler8258
    @gemtyler8258 4 роки тому

    keep up the good work! please upload more system design videos!

  • @akankshamahajan9709
    @akankshamahajan9709 7 місяців тому

    Wowww!!! These videos really helped me to prepare for my SD interview. Is there anything similar for ML System Design interviews?

  • @shubhamgoyal3100
    @shubhamgoyal3100 2 роки тому +1

    Awesome Content, Thanks a ton :)

  • @rahuljain070817
    @rahuljain070817 4 роки тому +1

    Please create more videos. Video was very helpful

    • @SystemDesignInterview
      @SystemDesignInterview  4 роки тому

      Glad you liked it, Rahul. Thank you for the feedback! Sure, I will upload more.

  • @evgeniystepankevich7964
    @evgeniystepankevich7964 2 роки тому

    Big thanks for the videos, great material !

  • @wangyipeng123
    @wangyipeng123 3 роки тому +4

    16:21 Question: can FE talk to the in-cluster manager instead of MS to figure out which leader to talk to?

  • @xiaomengwu3399
    @xiaomengwu3399 4 роки тому +1

    Thank you for your great work! Please keep it up with more great content! :)

  • @chickentikkasauce1301
    @chickentikkasauce1301 5 років тому

    Another direction this could go in is if you’re designing a distributed queue for N queues for single customer vs multi tenant.

  • @chickentikkasauce1301
    @chickentikkasauce1301 5 років тому +3

    You should consider a Paypal or some other account. Happy to fund some of this content so you can make more videos as a side gig.

    • @jagrick
      @jagrick 4 роки тому

      Chicken Tikka Sauce +1 however, I'm going to bet that he's at least a senior engineer in one of the faang companies, in which case he wouldn't really have a financial motive for the videos .

  • @RR8401674
    @RR8401674 5 років тому +4

    Thanks a lot. That is awesome!

  • @ameyjain3462
    @ameyjain3462 4 роки тому

    Great content:
    1. How will backend store files in local file system? - can you shed some light how will they maintain order. How will replicas sync on the order of the messages they sent.
    2. How will Delete calls sync on a file a system.
    3. Even using database if we store queueName-> messageId as the key, retrieving records in order might be slow and hard. If each queue is served by a single host, it can update which messages are sent to a client by writing some field in the database record(may be batch update).Retrieve more message from the table but the query might be a scan query, I am not sure which no sql can provide such kind of query quickly. Dynamodb can have queueUrl as partition and messageId as sort key and it can return sorted messge ids. But the throughput might be limited as a single host is serving all requests. How will multiple host serving the messages from the queue can handle the ordering?

    • @SystemDesignInterview
      @SystemDesignInterview  4 роки тому

      Hi Amey,
      Many good questions. A good answer will require a video on its own. Let me share only some ideas.
      1. Please check this thread: ua-cam.com/video/iJLL-KPqBpM/v-deo.html&lc=UgxvWvctwx7ZvfFisMR4AaABAg.93RPUNm8kUx93p9DlWifqg
      And this one, for message ordering: ua-cam.com/video/iJLL-KPqBpM/v-deo.html&lc=UgxxrP7-xc81hs98frV4AaABAg.8x222vilo4H8xENn5UVXaR
      2. It depends on the storage mechanism we use. E.g. in Kafka, deletes are not happening immediately. Only when the whole segment (file) with messages is processed, it is deleted. Many embedded databases use the similar approach. When record is marked as deleted (a tombstone record). And the actual deletion is happening later, e.g. during a log compaction process.
      3. You are correct, we should not expect high throughput for a messaging system that relies on an external database. As mentioned before, we should store messages locally, on disk. Using, for example, our own solution based on append-only log files. Or an embedded database (e.g. RocksDB).
      Database can be used for a small scale though. In such cases, we can maintain order using some simple technique, e.g. timestamps.

  • @mdfarooq7145
    @mdfarooq7145 5 років тому +3

    Thanks for such a great content.

  • @kumarchandan9685
    @kumarchandan9685 2 роки тому

    Please do more if you can :) excellent content

  • @atabhatti6010
    @atabhatti6010 11 місяців тому

    Thanks for the great content. Can you please talk about which choice of architecture (1, 2 or 3) you would make for the Metadata Service? And why? And please explain your comment that the datastore for MS does not need to be strongly consistent?

  • @engineerv3248
    @engineerv3248 2 роки тому +1

    Thank you for great quality content. Excellent explanation, I can't miss single word.
    Why the series is stopped? Any other resources would you recommend?

  • @gaureesha9840
    @gaureesha9840 Рік тому

    great explanation, thank you!

  • @liuzxiao
    @liuzxiao 5 років тому +1

    Covered many points similar to that I used in my daily work. Practical and useful!