16. System Design - Distributed Messaging Queue | Design Messaging Queue like Kafka, RabbitMQ

  Рет қаралды 47,359

Concept && Coding - by Shrayansh

Concept && Coding - by Shrayansh

Күн бұрын

➡️ Notes: Shared in the Member Community Post (If you are Member of this channel, then pls check the Member community post, i have shared the Notes link there)
➡️ Join this channel to get access to member only perks:
/ @conceptandcoding
This question in interview can come with different ways like :
Design Distributed Message Queue,
Design Kafka System,
Design RabbitMQ system,
How Messaging Queue works.
Chapters:
00:00 - Introduction
01:32 - Messaging Queue and its Advantages
07:49 - Point2Point and Pub/Sub Pattern
10:51 - Kafka Messaging Queue in Depth
39:07 - RabbitMQ in depth
To. connect 1:1 with me: topmate.io/concept_coding
To contribute for the channel UPI id: shrayansh8@oksbi
Join this channel to get access to perks:
/ @conceptandcoding
#systemdesign #softwareengineer #interview #amazon #hld

Пікірлер: 159
@santoshkumar-qf3ke
@santoshkumar-qf3ke 4 ай бұрын
teaching is an art, he literally said … “tell me” ….. reminded me of my math teacher
@ConceptandCoding
@ConceptandCoding 4 ай бұрын
loved your comment buddy thans a lot means lot to me
@shaijil09
@shaijil09 21 күн бұрын
I have worked in multiple systems with Kafka as a messaging broker. This video is an excellent tutorial ❤. I would love to see more tutorials that explain concepts like timeouts, effects on networking latency in polling, etc.
@jaideeppyne1880
@jaideeppyne1880 7 ай бұрын
This is one of the best Kafka videos I have seen on KZbin. You have taught so nicely here that I am looking for a playlist only of Kafka in your channel. A few things that were best -> format of the video, you started with a small box and kept on adding pieces, separately explained broker, topics, partition, consumer, consumer groups, then cluster, and zookeeper ... this gave an idea which is what and small functional components kept adding up and formed the full system. BEST! Few things I think can be added to make this a true masterpiece and no need to watch any other videos -> some twisted cases maybe.. complex cases with multiple partitions, multiple machines, and different partitions of the same topic in different brokers. Several other cases and a bit more extension of this in part 2 would be great. These questions are asked sometimes by the interviewer to test the knowledge.
@ConceptandCoding
@ConceptandCoding 7 ай бұрын
Noted, thanks will add more videos on Kafka to covered more usecases
@manansahlot9906
@manansahlot9906 Жыл бұрын
Thank you so much for sharing high level architecture of Kafka. Too much informative enjoyed the video!!
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Glad you enjoyed it!
@saumyachaurasia7350
@saumyachaurasia7350 Жыл бұрын
Wow...the explanation is so on point. Thank you so much for this valuable content.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you, Saumya pls do share it with your connections ☺️
@DeletedUser502
@DeletedUser502 14 күн бұрын
Concise form, covered all the kakfa topic.
@sudhirdharmadhikari1938
@sudhirdharmadhikari1938 Жыл бұрын
Too good ! Saved several hours of reading from the book
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Glad it helped!
@nobodyknows228
@nobodyknows228 3 ай бұрын
I have watched more than ten videos on this no body explained it like you. Thanks a lot for making such content.
@ConceptandCoding
@ConceptandCoding 3 ай бұрын
thanks a lot
@468hitman
@468hitman Ай бұрын
Very well explained
@novascotia2015
@novascotia2015 Жыл бұрын
love you sir. thanks for giving these classes as free
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Welcome buddy, pls do share it with your connections ❤️
@tonystarc9567
@tonystarc9567 Жыл бұрын
May I confess to you that "You are my hero". Thank you for everything that you are doing. Knowledge empowers the society.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks a lot buddy, means lot to me
@ziyinyou938
@ziyinyou938 Ай бұрын
Good job mate!
@mdnayab5839
@mdnayab5839 10 ай бұрын
Thanks a lot, that was so much helpful. It cleared all my doubts😀 Please keep up the good job!!!
@ConceptandCoding
@ConceptandCoding 10 ай бұрын
Thank you
@makarandthakare9174
@makarandthakare9174 Жыл бұрын
Thank you for the black background. Really helps the eyes.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Yes got lot of feedback for this, so switched to Black background
@anketpatel2312
@anketpatel2312 Жыл бұрын
Perfect one , you can come with implementing it in a project.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks
@GulabSingh-iw5nr
@GulabSingh-iw5nr 2 ай бұрын
Amazing video , great explanation 44:29 he mean *rabbitmq* works on push approach
@shamstabrez2986
@shamstabrez2986 Жыл бұрын
Dkhne se phle hi comment karta hoon I truly blve is bande kamal ka content diya hoga is session mein
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you very much Shams❤️, pls do comment after watching too if you liked the video and found it informational , really wanted to know
@subhamacharya4472
@subhamacharya4472 Жыл бұрын
Great video on messaging queues 👍😃
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you, pls do share it with your connections Subham ☺️
@tejasshaha6629
@tejasshaha6629 Жыл бұрын
Just amazing video. Thanks a lot ❤
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you
@heykalyan
@heykalyan Жыл бұрын
awesome didn't know about this requeue concept Sunday sorted😃😃
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks buddy do share it with your connections too ☺️
@makarandthakare9174
@makarandthakare9174 Жыл бұрын
Currently on 11th video, all amazingly explained. Thank you.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks buddy, hope by the time you will come to 16, i will add couple of more videos till then :)
@makarandthakare9174
@makarandthakare9174 Жыл бұрын
@@ConceptandCoding LLD and HLD complete ✌️😀
@akshitamadaan7867
@akshitamadaan7867 8 ай бұрын
Very valuable content. Thanks a lot🙏
@ConceptandCoding
@ConceptandCoding 8 ай бұрын
Thanks a lot
@JoJoy
@JoJoy Жыл бұрын
Excellent! Thanks!
@JoJoy
@JoJoy Жыл бұрын
One improvement you can make for your future videos is to understand the use of "read" (present tense) and "read" (past tense). You are superb in spite.
@gauravraj2604
@gauravraj2604 Ай бұрын
Insightfully explained. Thank you for your contributions. However, I feel you should have discussed acknowledgement part which could have provided more in-depth understanding.
@prasoonkushwah9558
@prasoonkushwah9558 Жыл бұрын
very detailed one , keep going thanks
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks
@yaseenshaik2284
@yaseenshaik2284 Жыл бұрын
Very useful content. Thanks
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you
@ujjalroy1442
@ujjalroy1442 Жыл бұрын
Best ever i have seen...thnxxx
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks Ujjal, pls do share it with your connections too ✌️
@ujjalroy1442
@ujjalroy1442 Жыл бұрын
👍👍 sure
@prasannapm3220
@prasannapm3220 2 ай бұрын
Nice!
@barwalgayatri4655
@barwalgayatri4655 Жыл бұрын
Best Explained
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you
@suheabkhan2546
@suheabkhan2546 Жыл бұрын
Zabardast
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks
@rupeshjha4717
@rupeshjha4717 Жыл бұрын
Thanks a lot for this awesome video! Happy to see your channel growing now! It would be also helpful if you can guide how to decide how many partitions , concurrency, retentions etc should have in kafka ? There is no such docs or tutorial on this estimation of these things, i have struggled a lot to figure out this. Hope you will pick up.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Hi Rupesh, first of all thank you. How many Partition should have, it depends upon traffic volume ( generally partition number is in odd like 3, 5,7 etc) but how many you needed depen upon traffic and it can be increased later also, so to answer your question there is no fixed number you can start with 1 and grow as per need
@prafullaingole6122
@prafullaingole6122 10 ай бұрын
Nice explanation. A real world practical example would have been great to connect the dots.
@ConceptandCoding
@ConceptandCoding 10 ай бұрын
Yes i will cover 1 topic on that too
@AnuragMishra-ws4zc
@AnuragMishra-ws4zc Жыл бұрын
Sir in system design interview we should only know overview of it (Kafka,RabbitMQ)or we should also know how to integrate it to our projects means internal working also.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
No internal working is not required, as in 45 mins interview thats not possible even Interviewer might not know how to integrate without reading the documentation
@yc98
@yc98 Жыл бұрын
Have doubts about the part where the message is stored in the dead message queue after retries in kafka, you said after certain retries it goes to the dead msg queue, but after a few minutes you explain that message is pulled by consumer itself in Kafka, so if the consumer is down it will not pull, and if it doesn't pull - message retries doesn't make sense. Can you please explain.
@rajeshreegavhale3227
@rajeshreegavhale3227 Ай бұрын
Best kafka video
@ConceptandCoding
@ConceptandCoding Ай бұрын
thanks
@barwalgayatri4655
@barwalgayatri4655 Жыл бұрын
Please make Series on How Multiple Microservices talk to each other using Kafka or Rabbit MQ ?
@anoopamz
@anoopamz 3 ай бұрын
perfect
@mrinalpandey54
@mrinalpandey54 Жыл бұрын
Thanks a lot for such a great article. I have few doubts 1. Can kafka implement both PUB/SUB or Point 2 point? Which is by default available with kafka? 2. In last u explained about RabbitMQ and same message getting broadcasted to multiple queues. how consumer will know wheteher the message has alredeay been processed by a different consumer? what is the business use case when we want the same message to be processed by different consumer? 3. Does kafka use Point 2 point?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Kakfa is by default distributed Pub/Sub architecture. And it does not care whether same msg is processed by different consumer (in some other consumer group) or not. USECASE where same msg multiple consumer need is, Take the same example of Cab services (in which they are sending their location every 10sec). One consumer is Dashboard for all Car location in a particular area. Another Consumer could be logs Application, which keep logging everything. Another Consumer could be the Real time Cab movement.
@atulsingh6624
@atulsingh6624 2 ай бұрын
i would appreciate if you come up with video implementing the kafka using psuedo code.
@rhythmjayee9707
@rhythmjayee9707 7 ай бұрын
🔥
@youKnowMe4real
@youKnowMe4real 5 ай бұрын
whats the point of different brokers if we have replicas of partition as ultimately both in sync hence both brokers will get full queue at same time??
@ankitgupta-ph4nk
@ankitgupta-ph4nk Жыл бұрын
Very easy and well explained, Any practical reference(Code wise) if you can share for this messaging will really helpful
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks and noted
@vaibhavjain1124
@vaibhavjain1124 4 ай бұрын
First great content Shreyansh. Kudos for that. I would like to add a bit clarification from official documentation on offset management. This offset mechanism where information about offset is stored in zookeeper znode is and old architecture. As per the latest version kafka has already moved out of dependency over zookeeper znodes to maintain the offsets, Kafka introduced an internal topic called "__consumer_offsets." The offsets are now stored as messages in this topic. Brokers replicate this topic for fault tolerance.
@rtrivedi39
@rtrivedi39 Жыл бұрын
Thanks, It gives me good understanding of both of the queues. Can we add here AWS SQS too.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks and noted
@AkashKumar-yi2jy
@AkashKumar-yi2jy Жыл бұрын
As you stated, if a partition is full, data is automatically moved to another partition. How will the hash-function know that a specific partition is full? How does Kafka handle partitions during rebalancing? How are network latency, data consistency, and data synchronisation handled when Kafka is used to replicate data across multiple data centers or geographic regions?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Hi Akash, in Kafka msgs are also deleted from queue periodically. Generally it has 2 criteria: - Set Retention time in topic. (After that time, msg will automatically deleted) - Size limit, once the size limit is reached, it will purge all msg whether it's read or not. So same partition can be reuse again. Also Publisher can implement Acknowledgement approach too for make sure that Msg is actually added in the question. If Ack=0 means Fire and forget. Publisher sent the msg but it might not added in the queue. Ack=1, means msg is accepted in one more partition.
@ArunGupta-ig2hc
@ArunGupta-ig2hc Жыл бұрын
When you say push based approach, and messages are pushed to consumers, Does that mean, bidirectional connection is established between the queue and consumer in RabbitMQ ? If not, what protocol is used underneath for push mechanism ?
@vinny1577
@vinny1577 9 ай бұрын
I agree, with all this information covered, it would have been nice to talk about how push and pull are implemented.
@abhishekpattnaik8531
@abhishekpattnaik8531 3 ай бұрын
Hi Shrayansh, Suppose there is one rabbitMQ queue and there are multiple replicas of a service . The service is a consumer of this queue. In this case, will both the replicas consume the same message simultaneously? If yes then how to avoid such scenario?
@romechax
@romechax 3 ай бұрын
GREAT VIDEO !! May be just some grammatical errors while explaining. If that's improved, it can be world class .. keep it up
@ConceptandCoding
@ConceptandCoding 3 ай бұрын
sure i will improve, thanks for the feedback
@vikramreddy7586
@vikramreddy7586 Ай бұрын
Did I miss the part where queue is designed, the title Design Messaging Queue like Kafka, RabbitMQ seems misleading to me.
@bhaskarbhakat5689
@bhaskarbhakat5689 Ай бұрын
Do we really have dead letter queue thing in kafka? I guess we can only have this sort of functionality by adding a new topic called dead letter topic. Please correct me if I am wrong.
@satyamtiwari5515
@satyamtiwari5515 Жыл бұрын
Hey, Could you please share your hand written material i-e oneNote/ipad link too for the reference.
@HariSarvotama
@HariSarvotama Жыл бұрын
amazing video sir ! have been following you since many months now . any specific reason why did you switch to english instead of hindi ? i liked hindi videos more in general
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Hi Aditya, got 100s of msg that they also want to learn but do not understand Hindi, so after thinking a lot i decided to switch to English. - My English is very basic Kam chalu. So anybody can understand. - 2nd point is more than language, way of teaching is imp, and that i kept the same. So i moved on
@sitronco
@sitronco 6 ай бұрын
Thank you so much this is awesome. One quick question: Do you have the notes available anywhere?
@ConceptandCoding
@ConceptandCoding 6 ай бұрын
Notes are available in description section, attaching below too: notebook.zohopublic.in/public/notes/u3i1s522a981ed32d48bcbb0b940ee3d58f22
@karanbangia14
@karanbangia14 11 ай бұрын
Hey, i have a question lets suppose, there are 2 partitions for topic and there are 2 pods running on kubernetes which are pulling messages, so 1 pod will read from 1 partition, now lets suppose there is a surge in message so new partitions will be created, how will my pods know about this? adding partition based scaling is the only solution as that partition will remain idle?
@ConceptandCoding
@ConceptandCoding 11 ай бұрын
I don't think, Kafka support automatic scaling with partition of a topic, we have to provide the Count of partition while creating the topic. When we have to increase or decrease the partition, as what I am aware of, it create new topic with new count and stream the data from original to new topics which is created and update the zookeeper. But let me check in morning again. But this is what i know
@aartikelkar397
@aartikelkar397 8 ай бұрын
Thankyou for the valuable videos! I have a doubt at 27:00 - you mentioned that consumer2 will start consuming msgs from partition1 but earlier you said that each consumer of a CG will consume msgs from different partitions. Here what if the C2 is consuming msgs from P2 already?
@brahm_and_coding
@brahm_and_coding 8 ай бұрын
when c1 goes down the consumer group will pick the next available consumer to resume the processing
@aartikelkar397
@aartikelkar397 8 ай бұрын
@@brahm_and_coding thanks
@sumitbasu5146
@sumitbasu5146 Жыл бұрын
Hi Srayansh, I have one Qs. Suppose, Application 1 and Application 2 acts as a consumer 1 and consumer 2 and it is listening to Topic A message. Both are belong to one Consumer group. Now, when message published and suppose Application 1 consumed the message then will the Application 2 also consume the message?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
If 2 different applications but with same group Id means belongs to same group. And both are reading the same topic, then they can not read same msg. Because as i mentioned, inside topic there are partitions which consumer read. So consumers in same group, can not read same partition. Therefore we can say, same msg can not be read by both consumer those belong to 1 consumer group
@suranjanachattopadhyay4979
@suranjanachattopadhyay4979 Жыл бұрын
Could you please elaborate the retry mechanisms that should be used while using kafka?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
In video i did, it maintain a sequence no right
@balakrushnabehera2800
@balakrushnabehera2800 Жыл бұрын
Very nice explanation. Could you please tell me about consumer group if consumer group 1 has 4 consumers does it mean that those 4 consumers does the same work like they are replicas of a particular consumer or they can be diff. Consumers doing different jobs. Basically I am asking while creating consumer groups on what basis we divide consumers to different consumer groups like they are grouped as replicas to each other or consumers doing different works can be grouped to one consumer group??
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Each Consumers are not replicas. Depending upon company needs different consumer application might be created, let's say one app need cars location data to create dashboard for users. But other need the data for doing something else. If both needed same data they need to be put into different consumer group
@balakrushnabehera2800
@balakrushnabehera2800 Жыл бұрын
@@ConceptandCoding So you are saying that if two consumer applications need same data then they need to be placed in diff consumer groups as keeping them in same consumer group the applications cannot read the message concurrently??
@dakshtomar9996
@dakshtomar9996 5 ай бұрын
One question:- if a consumer goes down in Rabbit MQ then how is a new consumer assigned to read from that queue?
@justlc7
@justlc7 Ай бұрын
Hey Shrayansh, could you do a similar video for GCP Pubsub? Thanks.
@ConceptandCoding
@ConceptandCoding Ай бұрын
noted
@Anjali_Ranveer_Singh
@Anjali_Ranveer_Singh 4 ай бұрын
what happens when the dead letter queue overflows?
@Telugu_lifestyle
@Telugu_lifestyle Жыл бұрын
Hi. Thanks for the Wonderful explanation. Please help me in getting clarity for below one's 1. I hope the P2P queue can be achieved by pub sub (kafka and Rabbitmq with Direct exchange technique). If not kindly help me in knowing it 2. How key (hash) in sender payload decide to push the message in kafka partition topic. Does the key's hash is generated based on partition information? Thanks in advance and thanks for the effort ☺️😊
@AkashKumar-yi2jy
@AkashKumar-yi2jy Жыл бұрын
We can design a topic or exchange that is unique to every producer-consumer combination to establish a P2P queue where each producer has a queue to send messages to and each consumer has a queue to receive messages from. This is possible in RabbitMQ by using a direct exchange, which routes messages to queues based on a routing key. Each producer can have its own queue, and each consumer can use its routing key to consume from a specific queue. This is possible in Kafka by using topics, in which each producer publishes to a specific topic and each consumer subscribes to a specific topic.
@AkashKumar-yi2jy
@AkashKumar-yi2jy Жыл бұрын
The hash value of the key is used to determine which partition the message is assigned to. The MurmurHash2 algorithm is used to generate the hash value, which is not directly based on partition information. The number of partitions in the topic, however, has an effect on the calculation of the partition to which the message is assigned because the hash value is taken modulo the number of partitions.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks Akash for the input. And regarding the first point can P2P be implemented via PubSub like Kafka. By putting one consumer and Consumer group, we can get the P2P behaviour. But in general Kafka is Pub Sub pattern
@animeshbiswas2905
@animeshbiswas2905 Жыл бұрын
hello sir LLD can be done with javascript (also learned oops ) because this my first language or i need to learn java?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Hi Animesh, LLD is OOPs concepts only. I am not familiar with javascript, see if all the OOPs fundamentals is possible with Java script then you are good to go)
@mehulanshumali
@mehulanshumali Жыл бұрын
Possible to share the slide ?
@khushboojain3618
@khushboojain3618 Жыл бұрын
Hi Great videos 👍🏻What is the software used for system design interviews
@ConceptandCoding
@ConceptandCoding Жыл бұрын
One note and wacom
@ADITYAKUMARking
@ADITYAKUMARking Жыл бұрын
Hey, Let’s assume in consumer group, there are two consumer 1 and 2. If consumer 1 went down, then will consumer 2 start reading from the partition which was assigned to consumer 1? What if consumer 2 was already assigned assigned a partition, what will be behaviour now? Also judging from the design here do consumer group consists of single service(with multiple instance/pods)?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Consumer 2 will now take care of both the partition of a topic.
@mrinalpandey54
@mrinalpandey54 Жыл бұрын
@@ConceptandCoding hi but in the video u taught that at a time only 1 consumer can interact with 1 partition. So is this an exception case or do we have any configuration through which a consumer can talk 2 partitions? Can a consumer read from more than 1 partition?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
As per Kafka documentation. If there is 2 partition and 1 consumer, then 1 consumer can read from both Partition. But if there are 2 or more consumers active and 2 partition, then correct configuration should be that each consumer should mapped to different partition
@sharmath101
@sharmath101 Жыл бұрын
Suppose there are multiple consumers from same group and they are reading message from same topic A.what if they want to read same message msgA which is present in Partition0. Does producer push duplicate message to each partition in the topic. How this can happen.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
No that's not possible as per Kafka documentation. 2 consumers in one consumer group can not read from Same partition. But same msg can be present in different partition of a topic. That logic need to be present at publisher, to publish same msg one for say Partition0 and another partition1.
@sharmath101
@sharmath101 Жыл бұрын
@@ConceptandCoding Here i am considering a consumer to be suppose ServiceA , ServiceB . Both need to work on msgA. so msgA will be pushed to both the partition in a topic. Am i thinking right?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
@@sharmath101 right. But generally if ConsumerA and ConsumerB both need to work on same partition, the correct way is they should be part of different consumer group that make more sense. You are right
@NileshKumar-fz9ok
@NileshKumar-fz9ok Жыл бұрын
is AWS SQS another example of Distributed Messaging Queue?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Right
@sauravgupta7415
@sauravgupta7415 5 ай бұрын
Kafka itself does not have a built-in dead-letter queue
@Abdulrashid22067
@Abdulrashid22067 Жыл бұрын
I have one doubt .. kafka is pull based then why will zookeeper take care of assigning topic to a consumer 2 when consumer 1 goes down? Isn't it consumer's responsbility
@ConceptandCoding
@ConceptandCoding Жыл бұрын
This is configuration based logic, as per my understanding, when consumer group is created, it configure the strategy by which it decide which partition to assign to which consumer, which strategy to choose when any consumer goes down. And strategy i think is Kafka platform code(called partition assignor). Let me double check where does this code logic or strategy resides.
@kalyanbabuakula2662
@kalyanbabuakula2662 Жыл бұрын
Hi sir, what happen if zookeeper is down will there be a replica for this
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Yes Zookeeper is also a Distributed system, one goes down another comes up. But did not cover it else video length becomes very big
@HellGuyRj
@HellGuyRj Жыл бұрын
Wait a sec, RabbitMQ works on push approach right? Why did you mentioned kafka works at push approach near 44:30?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Oops sorry my bad. I wanted to say RabbitMq. RabbitMq - works on Push approach Kafka - works on Pull approach. Thanks for pointing out Yash.
@HellGuyRj
@HellGuyRj Жыл бұрын
@@ConceptandCoding no worries, mistakes happen. Btw you are doing absolutely godly. Thanks for the content. We
@tech_knocking8440
@tech_knocking8440 Жыл бұрын
Awesome content, but video length could be long, 45.12 is a very short period of time to understand complex topics like Kafka and Rabbit. Sometimes I felt you were in a hurry to wrap it up, please take it in a positive way :)
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks for the feedback Ratnakar. Taken this feedback
@ankitgupta-ph4nk
@ankitgupta-ph4nk Жыл бұрын
I am watching it again.. Just one question.. Let say we only have one consumer group and 2 consumer in it.. And we have 2 partitions inside 1 broker. You also said in a same consumer group each consumer assigned to a different partition. Now let say if 1 consumer goes down while reading from partition 1 at offeset 5.. And assume 2nd partition is reading by consumer 2 continuing without failure.. What will happen in this case for partition 1
@sam-um5wo
@sam-um5wo Жыл бұрын
In that case where consumers are less than partition kafka will rebalance the partition and consumer 2 will read from partition 1 for sometime and keep on doing the rebalancing again and again
@ankitgupta-ph4nk
@ankitgupta-ph4nk Жыл бұрын
@@sam-um5wo Ok, then what about consumer 2 which already reading from partition 2..
@sam-um5wo
@sam-um5wo Жыл бұрын
@@ankitgupta-ph4nkIt will do that In round robin fashion sometime from 1 and then sometime from 2 .Read the Kafka documentation.Thats what is consumer rebalancing in kafka
@ankitgupta-ph4nk
@ankitgupta-ph4nk Жыл бұрын
@@sam-um5wo I got this thanks man.. Just one more thing asking out of context... I want to learn Low level design .. Let say for pizza store or any parking lot.. How to structure all classes and what best design patterns we can use Do we have any resources online to thoroughly got those concepts..
@BRIJKISHOREDUTTBCE
@BRIJKISHOREDUTTBCE 3 ай бұрын
Why does two consumers within a consumer group can not read a same partition?
@ConceptandCoding
@ConceptandCoding 3 ай бұрын
This is necessary to maintain message order and prevent duplication buddy. This design ensures sequential processing within a partition, avoiding complexities associated with concurrent consumption from the same partition by multiple consumers.
@suheabkhan2546
@suheabkhan2546 Жыл бұрын
Hi @shrayansh Even after repeated requests, you are not sharing the one note links for notes😢
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Hi Suheab. When i convert these One note pages to PDF, it's not in format at all. No one can read and understand properly from it. Sharing those rough kind and not formatted notes is not a good impression. One way for me is, to write it properly and then share, but again it gonna consume some time. Let me reach out to some team members and see if anyone while watching video make notes. I will try to get that.
@suheabkhan2546
@suheabkhan2546 Жыл бұрын
@@ConceptandCoding you can directly share this one note link by making it read only
@subhampandey7374
@subhampandey7374 Жыл бұрын
What if the queue goes down for rabbit MQ?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
RabbitMq also has the same concept of broker, leader and follower. So it should behave in the same manner as Kafka
@tejasvaidya8464
@tejasvaidya8464 Жыл бұрын
Sir can you please provide this document for reference
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Noted, will try to upload on gitlab
@shubhamsinghrana9262
@shubhamsinghrana9262 8 ай бұрын
could you please share notes on same
@ConceptandCoding
@ConceptandCoding 8 ай бұрын
Check description once pls,, if it's not there, i will add buddy
@prashantgupta6160
@prashantgupta6160 6 ай бұрын
Why can't we use db, why message queue
@ConceptandCoding
@ConceptandCoding 6 ай бұрын
actually both are used, queues are used to store the message temporarily and when all retry finished, it does store the failed msgs in DB. So multiple distributed workers can easily work on the queue and its easy to build event driven architecture using queue. DB is mostly for storing permanent data and doing some complex operation or queries.
@sorrybabu9744
@sorrybabu9744 Жыл бұрын
One thing is wrong here partiotion is not the leader, Its Broker which is the leader in the cluster. Dont delete the comments.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Leader and follower are the concept of Partition. One is leader and one or many are followers.
@ravikant-hi8mz
@ravikant-hi8mz 8 ай бұрын
To clarify, there is a leader broker machine for a particular topic and partition combo.
@pawanverma2575
@pawanverma2575 5 ай бұрын
Broker is not leader it is elected as Controller which is done by Zookeeper and the leader is one of the partition which is elected by Controller
@sbera87
@sbera87 4 ай бұрын
Bro, be concise please. Too much repetition of words
17. Proxy vs Reverse Proxy (Example) | How Proxy differs from VPN, LoadBalancer | SystemDesign
28:46
What is a MESSAGE QUEUE and Where is it used?
9:59
Gaurav Sen
Рет қаралды 948 М.
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 56 МЛН
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 25 МЛН
System Design Interview - Distributed Message Queue
26:28
System Design Interview
Рет қаралды 269 М.
System Design: Why is Kafka fast?
5:02
ByteByteGo
Рет қаралды 1 МЛН
Kafka vs. RabbitMQ vs. Messaging Middleware vs. Pulsar
4:31
ByteByteGo
Рет қаралды 66 М.
Design a High-Throughput Logging System | System Design
8:23
Interview Pen
Рет қаралды 41 М.
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 56 МЛН