3 Important Use Cases Why The Industry Is Using Kafka

  Рет қаралды 12,630

Anthony GG

Anthony GG

Ай бұрын

► Join my Discord community for free education 👉 / discord
► Exclusive Videos, Mini courses, Resume reviews, and coaching 👉 thetotalcoder.com
► 33% OFF on my Go + HTMX + Templ Course 👉bit.ly/3UFruxO
► Enjoy a 60% Black Friday Discount on My Golang Course 👉 fulltimegodev.com
► Follow me on Twitter 👉 / anthdm
► Follow me on GitHub 👉 github.com/anthdm
SUBSCRIBE OR NO MARGARITAS
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

Пікірлер: 44
@anthonygg_
@anthonygg_ Ай бұрын
► 33% OFF on my Go + HTMX + Templ Course PRESALE bit.ly/3UFruxO ► Exclusive Videos, Mini courses, Resume reviews, and coaching 👉 thetotalcoder.com ► Join my Discord community for free education discord.com/invite/Ac7CWREe58 ► 60% OFF on my Golang course fulltimegodev.com Thanks for watching
@sakelig4389
@sakelig4389 Ай бұрын
As someone who has heard about Kafka but no idea how it worked, this was amazing, i understood everything, please trickle in more videos like this
@akj3344
@akj3344 Ай бұрын
Last advice is actually pretty awesome.
@FakeDumbDummy
@FakeDumbDummy Ай бұрын
I already knew all this but still watched entire video, I wish I got this video back when I started using Kafka.. great explanation Anthony
@josephangelodelosreyes4206
@josephangelodelosreyes4206 Ай бұрын
also it allows a distributed event-based system that used to be event-based monolith.
@anthonygg_
@anthonygg_ Ай бұрын
True
@ThePandaGuitar
@ThePandaGuitar Ай бұрын
Anthony I am a big fan of your nugget videos. Straight to the point short and packed! 💪
@suikast420
@suikast420 Ай бұрын
I am using Kafka in production. For log analysis and for IOt device sensor processing. Maybe kafka makes sense for some uses cases. But for the most of the cases where the folks kakfa is for, other systems like nats fits better. Kafka is not a broker. Kafka is a distrubuted log. That is my one billion dollar mistake that I understand after going to production. 1. Every Tranformation on a IOT device strem ( re partioning ) will multiply your storage. 2. Cluster management is complicated 3. You have to persist data. You cannot work inmem 4. Data adations means that you have process gigs of data agin. ( Stoooorage that you don't have on an edge device ) 5. Reboot of the whlo kafka cluster can take hours if the election is loosed ( I deon't how it is after they replaced zookeeper ) The stregth on the other hand is rthat you can write in transactional manner so that consumers do not process messages until the producer commits and the java streaming api. If you will do messageing and stream processing. Take NATS at first.
@dandogamer
@dandogamer Ай бұрын
NATS and edge go hand in hand
@LtdJorge
@LtdJorge Ай бұрын
Exactly, Kafka is more of a fast as fuck distributed queue, but it’s not a broker. If you need routing, multiple consumers and all that, NATS or RabbitMQ should be better.
@gKits
@gKits Ай бұрын
So Kafka is somewhat like a buffered channel but instead of a couple of concurrent goroutines we have separate services?
@JT-mr3db
@JT-mr3db Ай бұрын
I have now started saying "Headesh" instead of "Headache".
@man-fuji
@man-fuji Ай бұрын
Great work boss you are really making us excellent developers. please can you create a simple application or api using Kafka ?
@jirisuster6165
@jirisuster6165 Ай бұрын
My problem, as someone who has only been part of big project using kafka for a month, was never kafka itself. The concept is pretty simple, but the problem is when you have extremely rushed development, bad documentation, over 40 topics, each having 50 partitions, bambilion producers and consumers that are actually multiple companies, coworkers that don't have time for daily 2 hour long calls to explain stuff, man it's hard. And I'm sure this is pretty "common" and that it can be soooo much worse
@anthonygg_
@anthonygg_ Ай бұрын
I feel you
@JoostHelberg
@JoostHelberg Ай бұрын
Wow, I always thought Kafka was useful, but every system I make caters for every aspect Kafka offers. Thx a lot!
@vikingthedude
@vikingthedude Ай бұрын
So kafka helps if service 2 goes down. But what if the kafka service itself goes down? They’re all just services after all right? And if kafka instances are replicated, so could service 2 instances. This leaves just the second benefit mentioned, which is that multiple downstream services can subscribe to the same topic and hence won’t interfere with each other
@LtdJorge
@LtdJorge Ай бұрын
The thing is Kafka is already made, it works, and it’s freaking performant, you don’t want to write it yourself. Also, it’s easy for every service to write to Kafka and be done. If every service has to implement the queueing you end up reinventing the wheel many times and introducing bugs and complexity. Also, those services may be in many different languages and you bet theres a Kafka library for that language.
@dushansilva1
@dushansilva1 Ай бұрын
Hey what are some of the differences between SQS and Kafka ? 🤔what are some of the points you should use one over the other ?
@jsonr1
@jsonr1 Ай бұрын
Antony, i think you should make a video on how to make a crypto casino in golang or any other language of your choice. Sounds crazy... I love your videos
@kt4760
@kt4760 Ай бұрын
have you seen AWS SQS used in place ok Kafka in a production trading environment?
@TheQxY
@TheQxY Ай бұрын
You'd need both SNS and SQS to fully replace Kafka I think. Both are heavily used in production.
@DomskiPlays
@DomskiPlays Ай бұрын
I never understood why I needed a message queue instead of a simple in memory stack/linked list. So basically it's for fault tolerance and replaying the events whenever you want?
@LtdJorge
@LtdJorge Ай бұрын
If your data fits in a linked list, you don’t need Kafka.
@matiasbpg
@matiasbpg Ай бұрын
Is not really a message queue that's a common misconception. Its a distributed append only log with publish subscribe capabilities
@anthonygg_
@anthonygg_ Ай бұрын
A message queue is a queue with messages. Lets keep it simple for people.
@kamalkumar1729
@kamalkumar1729 Ай бұрын
what is a message queue then ??
@matiasbpg
@matiasbpg Ай бұрын
@@kamalkumar1729 as Anthony said, a message queue is a queue with messages. It doesn't need to be persistent or a log, or be distributed, or partitioned, or support pub/sub. It just needs to have a protocol/API to consume and push messages (which is not the same as pub/sub since there doesn't have to be a fan out pattern common to subscriptions). Of course the capabilities of kaka can be used as a queue, but it seems and overkill and there are simpler queues.
@josephp.3341
@josephp.3341 Ай бұрын
Company I work for uses Kafka
@dandogamer
@dandogamer Ай бұрын
Everyone talks about kafka but no one talks about NATs why??
@dyto2287
@dyto2287 Ай бұрын
NATS > Kafka for me
@none_the_less
@none_the_less Ай бұрын
Don’t be a Timmy at least give us the reasons as to why NATS works well for your set of problems.
@dyto2287
@dyto2287 Ай бұрын
@@none_the_less 1. It's written in Go. I can read the source and even embed NATS server into my own binary. 2. More flexible and has distributed storage beyond just queues.. 3. It's very light and consumes less resources.
@dyto2287
@dyto2287 Ай бұрын
​@@none_the_less 1. Written in Go. You can even NATS embed server into your own application. 2. It's light and consumes less resources. You can deploy nodes absolutely anywhere, including Edge, IoT devices, etc... 3. It's pretty flexible and has features not only for queues but also K/V that is distributed with full history. 4. And finally it's I feel like it's more stable than Kafka. I have been using it in prod for 4 years and haven't had a single issue or weird crash.
@none_the_less
@none_the_less Ай бұрын
@@dyto2287 Thanks mate. I learnt some stuff I didn't know about NATS, because I used to think that it was just another broker.
@mojixcoder
@mojixcoder Ай бұрын
Do you also use jetstream? Because we faced some weird issues with JS.
@go_lang_thang
@go_lang_thang Ай бұрын
Are you Johnny Sins's brother ?
@anthonygg_
@anthonygg_ Ай бұрын
Sometimes
How To Use The Context Package In Golang?
17:03
Anthony GG
Рет қаралды 52 М.
When NOT to use Apache Kafka?
18:10
Kai Wähner
Рет қаралды 1,3 М.
1🥺🎉 #thankyou
00:29
はじめしゃちょー(hajime)
Рет қаралды 81 МЛН
DELETE TOXICITY = 5 LEGENDARY STARR DROPS!
02:20
Brawl Stars
Рет қаралды 15 МЛН
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 5 МЛН
Golang Channels Or Wait Groups? Let Me Explain.
18:32
Anthony GG
Рет қаралды 17 М.
System Design: Why is Kafka fast?
5:02
ByteByteGo
Рет қаралды 1 МЛН
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 93 М.
Go Pointers: When & How To Use Them Efficiently
14:09
Anthony GG
Рет қаралды 66 М.
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Apache Kafka in 6 minutes
6:48
James Cutajar
Рет қаралды 952 М.
The Most Efficient Struct Configuration Pattern For Golang
11:10
Why Microservices Don't Deliver On Their Promises
9:09
Continuous Delivery
Рет қаралды 12 М.
Why JavaScript Devs are Switching to Rust in 2024
10:35
warpdotdev
Рет қаралды 245 М.
Why Does Scrum Make Programmers HATE Coding?
16:14
Thriving Technologist
Рет қаралды 490 М.
1🥺🎉 #thankyou
00:29
はじめしゃちょー(hajime)
Рет қаралды 81 МЛН