Nest.js Kafka Microservice Tutorial

  Рет қаралды 59,312

Michael Guay

Michael Guay

Күн бұрын

Пікірлер
@mguay
@mguay Жыл бұрын
Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/
@renends7615
@renends7615 2 жыл бұрын
In a short time, something complicated was simplified. Great tutorial.
@maksymbaranovskyi8362
@maksymbaranovskyi8362 8 ай бұрын
Amazing. Your tutotials are concise, clear and packed with essential info. Thank you!
@thangapandianponnuchami4473
@thangapandianponnuchami4473 3 жыл бұрын
Wonderful content man! You are one of few creators who make short and clear. I am watching all your videos even if I aware of the topics to see your perception. Eager to wait for more content :-)
@mguay
@mguay 3 жыл бұрын
Thank you so much! This is greatly appreciated.
@mitchross2852
@mitchross2852 2 жыл бұрын
Hi, Can you follow up this video to dead letter queue, error handling, message repeat, load balance etc. Alot of people who use kafka use it at a enterprise-level for log replication, backups, redundancy. Can you make a another simple video like this for handling real world scenarios?
@GuilhermeSilva-vn6fw
@GuilhermeSilva-vn6fw 8 ай бұрын
You simplified a lot of things and have wonderful teaching skills, thank you
@michielsw
@michielsw 3 жыл бұрын
Thanks for taking the time to code out our suggestion from the previous video, appreciated!
@mguay
@mguay 3 жыл бұрын
Sure, thanks for the great suggestion!
@abhikbanerjee3719
@abhikbanerjee3719 Жыл бұрын
Awesome tutorial! Just a heads up - for anyone using NestJs 10+ and @nest/microservices ^10, the data field contains the value itself (data.value will be undefined)
@lord4791
@lord4791 3 жыл бұрын
Awesommeeeeeeee ! Please make more Microservices with nest & react
@funnyclipz520
@funnyclipz520 2 жыл бұрын
Awesome tutorial.... finally found a good tutorial of Kafka with example using NodeJS
@moylababa8196
@moylababa8196 2 жыл бұрын
I found your channel today and subscribed immediately. your channel is full of awesome tutorial. keep up the good work. Besh wishes
@NilsMoller
@NilsMoller 2 жыл бұрын
Hello, future man speaking here. `data.values` is not a thing anymore, the `data` object is now directly the DTO. Nest version: 9 KIafkajs version: 2.2
@AmirMo_Razmi
@AmirMo_Razmi 2 жыл бұрын
you save me from my nightmares from my project, bro
@ehsicheosmxbwisjdf
@ehsicheosmxbwisjdf 5 ай бұрын
thanks this is the awesome tutorial for beginners
@digvijaysinghthakur2903
@digvijaysinghthakur2903 2 жыл бұрын
Tutorial is really helpful for beginners
@mohammedriyadh120
@mohammedriyadh120 2 жыл бұрын
Hi Michael, Thanks a lot for the great channel, i will appreciate it if you can go much deeper with kafka clients and consumers options
@Varuag89b
@Varuag89b 3 жыл бұрын
Great content as always 👏 Keep up the good work 👍
@mguay
@mguay 3 жыл бұрын
Thank you very much.
@Trans_Canada_Highway
@Trans_Canada_Highway 2 жыл бұрын
Could anyone comment pros and cons between setting up kafka consumer as a microservice vs as a Nestjs module as in previous tutorial?
@MrVjfloyd
@MrVjfloyd Жыл бұрын
Hi Michael, thank you for sharing, for some reason .Everthing is working well but I'm getting an undefined when a consume the event, probably my kakfa configuration is different
@kirstypollock6811
@kirstypollock6811 Жыл бұрын
Ha. Not what I expected. I'm used to microservices communicating via pub sub using various cloud message buses. This tutorial looks to me awfully like the dreaded "distributed monolith' - the microservices in this video all seem to have to know about each other, rather than just emitting an event and not knowing or caring what other services might consume those events...The 3 services are tightly coupled - this ends up messy, hard to understand when you have many microservices. Kind of misses the whole point of microservices, for me, anyway. Fair comment or did I miss something? I'm surprised. NestJs has always seemed better thought through in it opinions than this... is it really encouraging direct service to service comms as the default ? Or is that just how this example does it?
@kpeople96
@kpeople96 6 ай бұрын
Noob Question: Shouldn't the API Gateway also implement a message pattern while communicating with the billing service. An Order would go to Gateway -> Billing -> Auth and it would need to return as response back to the user via same Gateway so that the billing was successful?
@permanar_
@permanar_ 2 жыл бұрын
I have a question, lets say like we want to share the same Data Types between Billing and Auth for the handleOrderCreated from billing microservices. Like when we send a message right, then subscribe to it and get a callback with a params inside it, how do we want to make it like predictable? Like what is the "inside" of this particular param? How do we do this?
@permanar_
@permanar_ 2 жыл бұрын
You called the `user.stripeUserId` because you "know" whats inside the object. But then how do we make it like type-safe and predictable?
@johndev-k3o
@johndev-k3o 3 ай бұрын
why is there no response on the postman?
@sajankumarvijayan811
@sajankumarvijayan811 Жыл бұрын
Wondering if is it possible to achieve this using mono repo? Because I want to avoid code duplication and manage single node_modules. The way you set it up works but I wonder wouldn't be a bit difficult to maintain the project code base in the long run?
@eunhakoo2124
@eunhakoo2124 Жыл бұрын
Also wondering about this
@crossfitiswack1147
@crossfitiswack1147 11 ай бұрын
Yeah, this seems like not the right approach tbh.. Pretty sure nest is supposed to manage this.
@amarwavare711
@amarwavare711 Жыл бұрын
How to keep nodemodules common for all services ?
@tuanphamanh62
@tuanphamanh62 2 жыл бұрын
Hi. In my case, I just got the undefined value just because my payload in eventPattern does not have value property. I don't know why it is different with the video . Please share if you know the difference with me.
@darrenhudson1033
@darrenhudson1033 2 жыл бұрын
I had the same issue and just used the data object without calling data.value. may be a change in the JSON.stringify maybe?
@zhangshiyucao
@zhangshiyucao 2 жыл бұрын
this is gold, thank you
@abhishekgn2626
@abhishekgn2626 Жыл бұрын
Great content 🤩
@shygrammer
@shygrammer 4 ай бұрын
if you are new to microservices, do not forget to have you rabbitMQ server running before you start this trying to connect here
@saurabh9446
@saurabh9446 2 жыл бұрын
I am getting this error - "The group coordinator is not available". I am using docker-compose with WSL2 on windows home
@tonyfrenzy
@tonyfrenzy Жыл бұрын
pretty nice. Big ups 👍
@arslananjum416
@arslananjum416 2 жыл бұрын
Can anyone tell, how to create API with implementation of kafka in nodejs?
@yacinemathurin2013
@yacinemathurin2013 Жыл бұрын
Hi, I'm currently on nest@9.x.x and kafka@2.x.x and had to call the toString() prototype method on the ClientKafka emit() method. The NestJs documentation needs update.
@oyinlolaolasunkanmi
@oyinlolaolasunkanmi 2 жыл бұрын
Hi Michael, thanks for this tutorial. It is worth every minute of my time. I have a very important question. How do we send back a response to the API gateway, which is intended for the frontend application ? Lets say billing was successfully and frontend application needs a feed back in order to proceed or cancel the order. How do we implement this ?
@mguay
@mguay 2 жыл бұрын
Thanks! Continually polling the backend, Websockets, or a refresh button are some common approaches.
@muhammadnaveedashfaq2991
@muhammadnaveedashfaq2991 2 жыл бұрын
Amazing content. Thanks
@codeheaven559
@codeheaven559 Жыл бұрын
Nice one
@10_manhcuongnguyen87
@10_manhcuongnguyen87 Жыл бұрын
Hi, first of all thank you for this video. I implemented according but only get empty memberAssignment as {}
@leonelkahameni
@leonelkahameni 2 жыл бұрын
Nice video, is there a way to do that using Fastify instead od Express?
@chaouchsofien7988
@chaouchsofien7988 2 жыл бұрын
hello , thx for the video , what is the difference between this approach and the other approach you did it in the other video using only kafka js , is it the same ?
@mohammad-e6d9b
@mohammad-e6d9b 7 ай бұрын
me too . its not clear for me .
@Piratacapitan
@Piratacapitan 2 жыл бұрын
Hi amazing video! I have a issue, I have a macbook M1 and tried to use docker-compose for intall kafdrop but I had a error. Can you have a mac M1? Do know how to install kafdrop in M1 machines? Thanks!
@yatindrajain6828
@yatindrajain6828 2 жыл бұрын
Hi, Is there any way to get messages based on offset or get offset of last consumed message?
@mkroven
@mkroven 2 жыл бұрын
thank you this is a great tutorial.
@martinduong6944
@martinduong6944 2 жыл бұрын
It's amazing tutorial.
@shubham8550
@shubham8550 2 жыл бұрын
great content 😊👍
@ninabohm1535
@ninabohm1535 2 жыл бұрын
Great tutorial, merci!
@hoseinmirian
@hoseinmirian 2 жыл бұрын
thanks amazing video. dont u have a course for this on udemi or somewhere? second, the concept of microservice is to have each service based on one language if team wants, and the way nest js works seems its fit for whole communication through js files? third!, Its a bit confusing when u are sending any type of request to the same root route like localhost:3000. whilst having route for each service might makes more sense what do u think? I mean u are sending all type of request to it and it dispatch events! fine! but there is no actual route so front-end can call in different end point.. can u clarify on that, tnx
@abdullahajibade7210
@abdullahajibade7210 3 жыл бұрын
Does the event pattern has a return type as message pattern. I asked because of the subscription you did.
@mguay
@mguay 3 жыл бұрын
It returns an Observable the same as the message pattern, however I'm not sure what data would come back, if any.
@farzadthev1554
@farzadthev1554 2 жыл бұрын
Cool !!! Thanx a lot
@carlosspark2756
@carlosspark2756 2 жыл бұрын
Hi great content , would you show a server-frontend mvc architecture using nest-next npm package
@kisstamas6675
@kisstamas6675 2 жыл бұрын
I learned about microservices it is the very best when the services are fully independent from each other. That means they are not communicating directly with each other, but only with events. In this video you are useing the both way to communicate with services, it's weird for me. The independency between microservices is crucial, because they can not effect each other processes (when one service terminated unexpectedly the other services have to work fine). If it necessery you have to store data redundant on each service. What do you think about that? Actually this is a very good video :)
@mguay
@mguay 2 жыл бұрын
I agree this approach can come with some baggage. Check out my other Nest.js + Kafka video for a more decoupled approach.
@kisstamas6675
@kisstamas6675 2 жыл бұрын
@@mguay thank you, i'm following you, so i will check your videos ;)
@michaelmontero2902
@michaelmontero2902 2 жыл бұрын
amazing.
@wayneyu3031
@wayneyu3031 2 жыл бұрын
How can I set up the VS Code theme as yours, can u give me so reference? Again, I love your video so much, great work, looks cool! keep going bro!
@mguay
@mguay 2 жыл бұрын
Thanks! I use Material Theme + Icons which are extensions.
@xisssss
@xisssss 3 жыл бұрын
great tutorial! really sorry for the stupid question.. but what vscode theme are you using?
@mguay
@mguay 3 жыл бұрын
No such thing. I’m using Material theme and icons.
@Abhishekn._
@Abhishekn._ Жыл бұрын
thanks
@samereldadah1911
@samereldadah1911 2 жыл бұрын
Great
@mridulmishra8166
@mridulmishra8166 2 жыл бұрын
-21deg Dude do u live in siberia ? :p ... great content BTW.
@mguay
@mguay 2 жыл бұрын
I'm in the USA.
@MartinPerez-mi1ty
@MartinPerez-mi1ty 2 жыл бұрын
New sub
@misternether8602
@misternether8602 8 ай бұрын
Nice tutorial, but too much code in one place, making it hard to comprehend
@marcovignotto1559
@marcovignotto1559 2 жыл бұрын
Thanks! I literally love your content! But you're too fast, I think in 5 minutes I paused 100 times!
@mguay
@mguay 2 жыл бұрын
Thanks! And I appreciate the feedback.
Nest.js | Middleware, Pipes & Interceptors Explained By Example
33:39
Nest.js Microservices Tutorial in 20 Minutes
17:56
Michael Guay
Рет қаралды 114 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 180 М.
Apache Kafka Crash Course
1:18:06
Hussein Nasser
Рет қаралды 443 М.
The Right way to write Nest.js & Typescript clean-code - SOLID
17:55
Nest.js & Kafkajs | Error Handling + Class Design
41:03
Michael Guay
Рет қаралды 16 М.
Learn NestJS Microservices in 20 Minutes
20:34
Tech Vision
Рет қаралды 23 М.
Nest.js | Events & Task Scheduling Tutorial
15:04
Michael Guay
Рет қаралды 36 М.
Kafka Tutorial - Node.js Producer & Consumer
28:50
Kris Foster
Рет қаралды 72 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 117 М.
Apache Kafka in 6 minutes
6:48
James Cutajar
Рет қаралды 1 МЛН
NestJs Microservices with RabbitMQ
23:21
Computerix
Рет қаралды 18 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН