The error that you encounter , It's becuase of forEach doesn’t return anything and when you used map it was working becuase map return an array. Thanks vdo was awesome 😎
Sir, can we perform look up with two different microservices? Actually i have two dbs one is user and other is product db and i need to find the name of that user who buying product so i need to apply join , can we apply aggregate directly ? Mai use nhi kr pa rha directly
Nahi ese nahi hoga if you have to hit 2 query one is for user and another one for product . Join is possible if you are using same DB but your both DB are seperate then you can't put joins
nice tutorial, but you dont secure all endpoints, and need to create a token to comunicate btween services. and some gateway so de client dont need to guess witch server call.
array.forEach(async (item) => { .... async method }) does not work correctly for async executions, replace it with 'for' statement. everywhere. I like it this video
Bhaiya, with due respect, I do not want to disregard or anything. But is this is true microservice because isn't the case of microservice... Every service could be individually deployed but you are using authenticationMiddleware in every service. I mean ...what if I am deploying each folder on different server. There would be some sort of communication gap In " post_micro/routes/postRoutes.js" import authMiddleware from "../middlewares/authMiddleware.js"; and this line wont be able to find that middleware. What should I do in such cases?
Bro it's depends if you do not want to use same code to just verify the JWT then you can call it from Auth API but again it will create extra one request on your another services to just check token . So that's why we have implemented the same code on our servers . In some case you will use different backend where you will different code or you can just call your Auth API
Thanks for your Explanation because when Tushar told in video that "it was not working with forEach and working fine with map" then in remaining part of the video I was constantly thinking about why It didn't work with forEach. Then suddenly looked at you comment before asking it from chatGPT. 🤩
That O(1) optimisation at the end was very well done.
bhaiya sach mein maaza aa gaya ..next video jaldi upload krna..bahut kuch sikhna hai aapse
Bohot dino se wait kr rha tha microservice ke upar video❤
Great video ...right time to upload ...I am now searching RUclips. ..node js Microservice
I usually perform the method 2 technique like mxn Time complexity, but the way u optimised it to o(1) was really splendid
Great video... one thing we can use delete user.password instead of select as well to remove password from auth-service
i learned something valuable today. thanks and keep sharing valuable content
The error that you encounter , It's becuase of forEach doesn’t return anything and when you used map it was working becuase map return an array. Thanks vdo was awesome 😎
great video sir!!
Great Video.... Please make more videos of NodeJS Microservices and Various Services of Backend in NodeJS
We will try
Waiting for it egarly!!@@codingWithTushar
Good topic of packages and architecture.
Hi but in case of mongodb aggregation when we use lookup and there are multiple lookups what to do in that case .
Very good architecture ❤
Thanks Tushar bhai.
Amazing🔥
Sir, can we perform look up with two different microservices? Actually i have two dbs one is user and other is product db and i need to find the name of that user who buying product so i need to apply join , can we apply aggregate directly ? Mai use nhi kr pa rha directly
Nahi ese nahi hoga if you have to hit 2 query one is for user and another one for product . Join is possible if you are using same DB but your both DB are seperate then you can't put joins
Thanks for this ♥
Sir please make a detailed course on PostgreSQL ❤
Sir we can use massage queue
Yes we can I'll cover it next video
Thailand chala ja zyada queue nahi h massage keliye
Sir token ko database user table me save kar sakte hain
JWT ka flow stateless hai and we do not store it in DB .
If you want to store in DB you can but it’s not recommended with JWT
pleae being more project videos on microservices based architecture
sir could you please tell me which font and theme you are using in vscode?
Font - Fira code
Theme - Ayu
Thank you sir♥️
Wow great, can you teach us how to use micro frontend with module federation in react
optimisation at end was 0(n) not o(1) . please check.
Sir why we use static inside class ?
Usually we use static to access any method or variables directly from class in this case we don't need to create an instance of that class
nice tutorial, but you dont secure all endpoints, and need to create a token to comunicate btween services. and some gateway so de client dont need to guess witch server call.
array.forEach(async (item) => { .... async method }) does not work correctly for async executions, replace it with 'for' statement. everywhere. I like it this video
Bhaiya, with due respect, I do not want to disregard or anything. But is this is true microservice because isn't the case of microservice... Every service could be individually deployed but you are using authenticationMiddleware in every service.
I mean ...what if I am deploying each folder on different server.
There would be some sort of communication gap In " post_micro/routes/postRoutes.js"
import authMiddleware from "../middlewares/authMiddleware.js";
and this line wont be able to find that middleware. What should I do in such cases?
Bro it's depends if you do not want to use same code to just verify the JWT then you can call it from Auth API but again it will create extra one request on your another services to just check token .
So that's why we have implemented the same code on our servers .
In some case you will use different backend where you will different code or you can just call your Auth API
Promise.all takes array of promises. When u were using forEach it does not return any thing but when u were using map it return an array. So it worked
Thanks for your Explanation because when Tushar told in video that "it was not working with forEach and working fine with map" then in remaining part of the video I was constantly thinking about why It didn't work with forEach. Then suddenly looked at you comment before asking it from chatGPT. 🤩
Sir plz 🙏 ek form validation baniye na next-form-prisma-zod-trpc- mongodb plz 🙏 Hindi me I humble request
😊
Hi sir..
Can please make one small micro service project
Yes, sure
bhai apne 21:40 per email me mukul kyse de diya mera bhi name mukul hai what a coincidence
Badiya 😄
Postgressql beginner to advance
Bilaaaa hindcha zaybal tildaa