Тёмный

Kafka vs. RabbitMQ - who wins and why? | Systems Design Interview 0 to 1 with Ex-Google SWE 

Jordan has no life
Подписаться 35 тыс.
Просмотров 33 тыс.
50% 1

I'm keeping the moustache sorry not sorry.
Stay posted for this Saturday, ultimate video incoming.

Наука

Опубликовано:

 

1 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 54   
@VijayJain
@VijayJain 5 месяцев назад
The key thing to mention is that If sensor metrics are spread across multiple partitions, they can still be read out of order, so in-order is only guaranteed within the partition.
@jordanhasnolife5163
@jordanhasnolife5163 5 месяцев назад
Yep!!
@pankajjahagirdar1278
@pankajjahagirdar1278 Месяц назад
partitioning can be on deviceId, so readings of same device can be in same parititon
@devops_junkie9203
@devops_junkie9203 День назад
Ah, this is amazing, I have soome junior developers that I am training on MS Architeture we are now at the integration point and wanted to see which is better from our case. It seems we might be using both options for us. Thanks
@Aditigoyal1997
@Aditigoyal1997 4 месяца назад
Insightful and crisp video. Thanks.!
@quirkyquester
@quirkyquester Месяц назад
amazing topics, and video been thinking about learning more about rabbit mq and kafka for awhile. wanted to know the diff. this answers my question in mind.
@rhodyborn
@rhodyborn 4 месяца назад
Throwing together a design doc and this video was quite helpful, thanks. Also, P!
@jordanhasnolife5163
@jordanhasnolife5163 4 месяца назад
Great! I should make the caveat though that you should definitely check the official docs of both technologies at this point, because it is very possible that they have evolved significantly!
@AlexBowman-1999
@AlexBowman-1999 5 месяцев назад
Im building out a game with a microservice architecture and an eventbus system. I want to know some thoughts on the idea of using both kafka AND rabbitmq. I would use kafka for the user auth service where all user data will be saved to disk to maintain reliable syncing with other services at all costs. My thought is that the auth service is by far the most critical service and needs a robust system in place. I am ok with the processing time taking a bit longer as this is just for the signing up/registering a user process(this only happens one time per user). Then for all other game related events, it will be handled with rabbitmq to utilize the in memory speeds. I understand that setting up/maintaining these two systems will be more difficult, but overall do you think this idea has some merit to it?
@jordanhasnolife5163
@jordanhasnolife5163 5 месяцев назад
Well, you may not love my answer, but considering this is a personal project, I think that you're building for scale that you don't need :) I'd probably just use some existing OAuth service and for the game related events you could always just have the server connect to all clients via websockets.
@indraneelghosh6607
@indraneelghosh6607 5 месяцев назад
This was a really helpful overview of the messaging systems. Can you do a video that goes more into the implementation details of the message brokers you discussed? For instance, answer to questions like how and under what conditions does Kafka guarantee exactly once message delivery and what sort of guarantees these message brokers give in case of failures etc.
@jordanhasnolife5163
@jordanhasnolife5163 5 месяцев назад
The brokers themselves don't really give any guarantees I'd say, but rather the broker in combination with a stream processing framework is where you start seeing those. Hopefully the stream processing video clears that one up a bit.
@kinshaabid3063
@kinshaabid3063 17 дней назад
Very clear and easy explanation.❤
@abdelrahmanemam6478
@abdelrahmanemam6478 Месяц назад
Great explanation!
@david6851
@david6851 9 месяцев назад
Wait I think RabbitMQ has some failover strategies? I think they also have quorum queues and classic queues where quorum queues actually have a persist log on disk? Not 100% sure about what I am saying though, maybe a bit too specific to RMQ. someone correct me if I am wrong.
@jordanhasnolife5163
@jordanhasnolife5163 9 месяцев назад
You may be right - when I talk about these technologies I try to just focus on "in memory" versus "log based" because specific implementations can change all the time. It's very possible that depending on how you configure RMQ you can do any of those things.
@varshard0
@varshard0 4 месяца назад
You are correct. RabbitMQ persist messages if both queue and message are marked as durable.
@goldmund67
@goldmund67 2 месяца назад
Wanted to clarify the same thing. RMQ supports durable queues but just to be clear that means saving messages in the queue not yet ACK'd when the system goes down or memory is unavailable. Doesn't mean full replay.
@vadimc4812
@vadimc4812 4 месяца назад
RabbitMQ has a different storage options that are log-based. Calling it an "in memory" doesn't sound right. Not sure about others in a list but it could be the same case with them.
@jordanhasnolife5163
@jordanhasnolife5163 4 месяца назад
Yeah I always make this videos with the caveat that they could very well be incorrect. When a technology is open source, it can adapt significantly over time, and additionally people like to throw in a lot of features so that they have more to advertise for the product. A better title for the video would be "in memory vs. log based message brokers", but I just like to clickbait because I'm a narcissist.
@medievalogic
@medievalogic 3 месяца назад
are you talking about Durable queues?
@2005kpboy
@2005kpboy 9 месяцев назад
Low latency backbone used by trading firms beat these two by wide margins. I guess these are designed for high throughput whereas LLBs are designed for low latency.
@jordanhasnolife5163
@jordanhasnolife5163 9 месяцев назад
I'll be honest I've never heard of these and I work in trading I'll give it a look
@yashkhd1100
@yashkhd1100 9 месяцев назад
I guess u r talking about ultra low latency full stack systems which uses combination of HW and SW to get really low latencies. Solace is one of such vendor. These systems have very limited use cases and mostly they are for trading. Kafka and RabbitMQ are all about scale and provides good enough latencies sufficient for wide range of use cases.
@ROFEL
@ROFEL 9 месяцев назад
@@jordanhasnolife5163 you a quant?
@prashantshubham
@prashantshubham 9 месяцев назад
Audio and video sync issue? 🤔
@jordanhasnolife5163
@jordanhasnolife5163 9 месяцев назад
It's possible, I fully edited this thing with my sound off
@smoran02
@smoran02 Месяц назад
@@jordanhasnolife5163 I have this problem on all your videos FWIW. Love the content though.
@Bruh468
@Bruh468 5 месяцев назад
Great videos + How someone so young can have so much knowledge .. but bro why do you have named it -> Systems Design Interview 0 to 1 ? Systems Design 0 to 1 could have been an apt name .. don't you think? its more useful than just for interviews..
@jordanhasnolife5163
@jordanhasnolife5163 5 месяцев назад
I think it's harder to speak authoritatively about actually systems because there's a lot more "it depends" and existing company considerations going into making those choices :). Plus, these things change so fast that for the purposes of accuracy about the technologies my videos are good for interviews, but could be incorrect IRL
@benagarr
@benagarr 16 дней назад
Great video
@sarudon5615
@sarudon5615 2 месяца назад
6:16 if its a message queue and last message processed by consumer B was M2 then according to Queue next message to process should be M1 but you are saying next message to be processed is M3. This is confusing explain / correct me if I'm wrong
@jordanhasnolife5163
@jordanhasnolife5163 2 месяца назад
probably just a poor explanation on my part, messages are processed FIFO
@firezdog
@firezdog Месяц назад
I don’t see anything inherent in the log based queue that would limit throughput - except the slower reads from the disk. I feel like the semantics of the queue should be independent of the way it is stored - if that makes sense.
@jordanhasnolife5163
@jordanhasnolife5163 Месяц назад
Makes sense to me, but at least for jms vs Kafka they're inherently different paradigms.
@firezdog
@firezdog Месяц назад
I was thinking about this more and I suppose the limits on memory could be one reason why the semantics are different. When you’re processing from memory you need to clear items out or the queue gets too big and you’ll get thrashing / crashing. I’ve seen this happen with RabbitMQ at work.
@jordanhasnolife5163
@jordanhasnolife5163 Месяц назад
@@firezdog Absolutely - if you buffer too much you'll bring down the broker
@MrWayneStephen
@MrWayneStephen 14 дней назад
You don’t actually mention if Kafka is the log or message type vs rabbit
@jordanhasnolife5163
@jordanhasnolife5163 14 дней назад
Kafka is the log
@phsaurav
@phsaurav 3 месяца назад
Great video. Clear and on point. Thank you. 🫡
@htm332
@htm332 9 месяцев назад
Gangster stuff
@jordanhasnolife5163
@jordanhasnolife5163 9 месяцев назад
I'm certainly trapping upon these streets
@rodfrazier1125
@rodfrazier1125 4 месяца назад
For a visual learner like me, I understand but the way you scribbled all over the board. It can throw people off. Just a bit of advice maybe you can take some goodness from. Great video though man!
@jordanhasnolife5163
@jordanhasnolife5163 4 месяца назад
Appreciate it, thanks Rod!
@joshidev.dev88
@joshidev.dev88 9 месяцев назад
You can have round robin in kafka using null partition key
@jordanhasnolife5163
@jordanhasnolife5163 9 месяцев назад
I'll have to look into that, afaik every consumer still sees every message but I'm sure there's some way to do it
@fallencheeto4762
@fallencheeto4762 9 месяцев назад
Nice mustache
@jordanhasnolife5163
@jordanhasnolife5163 9 месяцев назад
Thanks Mr. Cheeto, unfortunately I can't actually grow facial hair so now I'm left with this abomination
@medievalogic
@medievalogic 3 месяца назад
gold
@cloud_architector
@cloud_architector 4 месяца назад
Kafka has much better performance than in memory rabbit mq
@jordanhasnolife5163
@jordanhasnolife5163 4 месяца назад
In practice this may be true, I'd have to look at benchmarks. I think that from an interviewing perspective though, knowing the architectural differences between them and what that means (at least in theory) is important.
@radonspace2098
@radonspace2098 25 дней назад
Thanks Jordan. Great video. Please get a life. 😄😄
@jordanhasnolife5163
@jordanhasnolife5163 25 дней назад
Never!
@monishchhadwa777
@monishchhadwa777 3 месяца назад
Great explaination!
Далее
WOW... WHAT A FIGHT!!!!! 📣 #ufc302
00:48
Просмотров 844 тыс.
БАТЯ И СОСЕД😂#shorts
01:00
Просмотров 992 тыс.
System Design: Why is Kafka fast?
5:02
Просмотров 1 млн
20 System Design Concepts Explained in 10 Minutes
11:41
What is RabbitMQ?
10:10
Просмотров 304 тыс.
Kubernetes Explained in 6 Minutes | k8s Architecture
6:28
Мой странный компьютер 2024
18:33
Карточка Зарядка 📱 ( @ArshSoni )
0:23
Mi primera placa con dios
0:12
Просмотров 364 тыс.
Индуктивность и дроссель.
1:00