When and when not to use Node.js - Node.js Basics [06] - Java Brains

  Рет қаралды 360,088

Java Brains

Java Brains

4 жыл бұрын

Have you seen the new Java Brains? Check out www.javabrains.io now for awesome courses and content!
Understand the core problems that Node.js was meant to solve and why it is a good choice for certain applications and not for some others! Learn the strengths and weaknesses of the Node.js platform.
Java Brains website: javabrains.io
Access the full course playlist here:
• NodeJS Basics
#JavaBrains #Node.js #JavaScript #Tutorial

Пікірлер: 420
@femaledeer
@femaledeer 4 жыл бұрын
Having an explanation of the technology before diving into the code is extremely useful. A lot of youtube channels don't explain anything.
@raymrash
@raymrash 4 жыл бұрын
absolutely
@SirajAhmed-zn8eh
@SirajAhmed-zn8eh 4 жыл бұрын
Get "Learn and understand NodeJS" by Anthony Alicea on Udemy. It's a gem. Takes apart NodeJS and explains its basic behaviors.
@YouilAushana
@YouilAushana 9 ай бұрын
Others can be, Unapologetically greedy.
@brunobernard86
@brunobernard86 4 жыл бұрын
Hey, you need to do a series on "When and when not to use". Very interesting :)
@hichamo-sfh177
@hichamo-sfh177 4 жыл бұрын
Yes that's a good suggest
@MrSidMan
@MrSidMan 4 жыл бұрын
When NOT to use Node.JS: When your client insists you use PHP.
@ask4funs_solution
@ask4funs_solution 4 жыл бұрын
hahahaha
@TheDesvendador
@TheDesvendador 4 жыл бұрын
i bet you "work" with wordpress
@dayvie9517
@dayvie9517 4 жыл бұрын
When your client insists that you should "destroy an already existing wordpress solution"
@leimococ
@leimococ 4 жыл бұрын
so true
@nexovec
@nexovec 4 жыл бұрын
LOL
@carlosbarbier2401
@carlosbarbier2401 4 жыл бұрын
I have been working with node js for a while but this tutorial is one of the best tutorials out there. Thanks for sharing your knowledge
@ayanSaha13291
@ayanSaha13291 4 жыл бұрын
Dear Koushik, You are outstanding as always. I could not find a single person who speaks technology as simply as you do. I have been following you for more than 7 years now. I truly appreciate your efforts. Thank you.
@mykola5669
@mykola5669 4 жыл бұрын
That's the best "how, why and when" video about programming languages I saw by this day. Well done!
@liamsmith-yp3xh
@liamsmith-yp3xh 4 жыл бұрын
when to use: "do this then this, then this, then this" when not to use: "generate every prime number up to 100000000000000000000000000000000000000000000000"
@hattrickster33
@hattrickster33 4 жыл бұрын
At that point, you would be using C lol
@raushonmunni2633
@raushonmunni2633 3 жыл бұрын
I tried to do that once.
@karthik-ex4dm
@karthik-ex4dm 4 жыл бұрын
One of best explanations of event driven model of Node.js Eagerly waiting for the next video
@ibrahim47
@ibrahim47 4 жыл бұрын
Great video, one thing to add is it's commonly used in distributed systems. thanks to its non-blocking ability and asynchronous behavior. this is why is it called node after all. because a nodeJs server is just a node among other nodes.
@simomed5002
@simomed5002 4 жыл бұрын
wow being more than 10 years in web development... I like how simply you explain the details! keep moving bro, I'm definitely following your tutorials and moving to node js from the programming language I'm using right now, also I subscribed to your channel :)
@alexisaddicted
@alexisaddicted 4 жыл бұрын
I think that for this video is great at explaining basic concepts in a simple way. Good job!
@jeronimoolivavelez1299
@jeronimoolivavelez1299 3 жыл бұрын
Great Explanation. It is important, not only to know the code language but also learn which code is better to put in use depending the context of the app you are going to develop.
@SachinKumarSahu
@SachinKumarSahu Жыл бұрын
Having experience of working in Node for last couple of years, but some info in this tutorials are complete GOLD
@David-kg5nn
@David-kg5nn 4 жыл бұрын
Thanks for this. I really enjoy the long form, in-depth discussion on one topic.
@suryasurya475
@suryasurya475 3 жыл бұрын
Full info about Common JavaScript Node : www.dotnet.idn-kxchange.com/blogs/post/75/Common-JavaScript-Node Visit : idn-kxchange.com/ for more info.
@aakashggujju
@aakashggujju 3 жыл бұрын
Man you are the best and let me tell you that listening to you is always blissful and let me tell you that you are an awesome teacher and always make things simple and cool for listener's. Thanks. 🙏
@Manana7016
@Manana7016 2 жыл бұрын
I really appreciate your explanation! I’d love to hear your take on comparing node.js to other options like python, php, etc. But thank you again for this video.
@devdylan6152
@devdylan6152 3 жыл бұрын
you covered this SO WELL... like you hit all the proper keys and put it all in a easy to digest manner, I will be using this to explain this to people D:
@shaileshsingh5664
@shaileshsingh5664 4 жыл бұрын
NICE lets make this lockdown a little educational and knowledgeable
@sreerup_dhrino
@sreerup_dhrino 4 жыл бұрын
Simple loved it... Clear explanations with proper examples
@keshavrastogi5005
@keshavrastogi5005 4 жыл бұрын
that was really great. I was confused whether to use node.js or not, but now I am clear :) Thanks! :)
@jenishvadodaria2888
@jenishvadodaria2888 3 жыл бұрын
You are a gem for Providing us with this example. Thank you!!
@Jbdoster
@Jbdoster 4 жыл бұрын
Been following this guy since I started, spot on And nice touch on the c/c++ node backend
@armaandhanji2112
@armaandhanji2112 4 жыл бұрын
Thank you for talking about Node.js. I would love if you get into some of the advanced capabilities of Node.js! Thank you.
@eny1103
@eny1103 4 жыл бұрын
Thank you for this video! It was very informative!
@imanueljodi1201
@imanueljodi1201 4 жыл бұрын
A great explanation that i've been looking for,awesome!
@kaleemullahnizamani7436
@kaleemullahnizamani7436 4 жыл бұрын
Loving you since your first video of servlets. You shine 😎
@AlbertBrucelee
@AlbertBrucelee 4 жыл бұрын
Thank you for sharing! Very helpful! God bless you!
@headlights-go-up
@headlights-go-up 2 жыл бұрын
As someone new, you explained this so well. Thank you!
@sytranvn
@sytranvn 4 жыл бұрын
In fact node can use multiple cores if needed. But it is hidden from the developer's view and taken care of by libuv.
@akashnag3879
@akashnag3879 4 жыл бұрын
extremely great explanation. thank you very much.
@iliyasmohammed6192
@iliyasmohammed6192 2 жыл бұрын
Thanks a lot for the explanation. Its really needed when diving into it.
@0the0ambient0
@0the0ambient0 4 жыл бұрын
Great explanation. Thank you!
@nicktheritter
@nicktheritter 2 жыл бұрын
Really well done video. Easy to follow. You're interesting to watch. Useful information. Thank you.
@dawah7556
@dawah7556 4 жыл бұрын
i was searching for this and found your video.. that's great
@gokulraja2006
@gokulraja2006 4 жыл бұрын
This is the best tutorial I have ever seen.
@sneak9407
@sneak9407 2 жыл бұрын
You deserve more likes and views for the great analysis on node in this video.
@flyingleaves5480
@flyingleaves5480 3 жыл бұрын
Most informative I've seen so far... Thank you
@codeblueocean3520
@codeblueocean3520 3 жыл бұрын
I learnt mern from online courses but understood the core architecture/logic from this video.thankyou very much
@alexandertarasenko3038
@alexandertarasenko3038 4 жыл бұрын
It is pleasant to find Java devleoper who doesn't just blame javascript) Thank you for this movie!
@asifmahmood9358
@asifmahmood9358 3 жыл бұрын
This channel should be renamed as tea with java brain... Ur doing awesome work love from Pakistan
@yassine_klilich
@yassine_klilich 3 жыл бұрын
i really enjoyed this explanation, love it
@tsunekakou1275
@tsunekakou1275 4 жыл бұрын
you got one mistake there, asynchronous doesn't have anything to do with multi-threading. it is possible to do asynchronous calls in a thread pool. you can have threads execute mutiple event loops, process non-blocking i/o calls, and no thread have to wait for IO (unless you call synchronous/blocking operation). asynchronous i/o operations are offered by the operation system, there is no rule dictate you need to use single thread model or muti-thread model to use these async API.
@piotrgoabek6166
@piotrgoabek6166 4 жыл бұрын
But, I guess, it's often put like this - if you have a multhithreaded framework, go ahead and use the luxury of a blocking model. The resulting code is more clean and decoupled.
@tsunekakou1275
@tsunekakou1275 4 жыл бұрын
​@@piotrgoabek6166 .net support non-blocking i/o api out of the box with async/await (sort of like coroutine). the benefits of coroutine is that you have a nice synchronous-like control flow, look really clean, easy to reason about even in multithreaded environment. other example is boost::asio in C++ support coroutine, callbacks, proactor model, blocking and non-blocking operations and possible to decouple with template. it's often like this, if you have a multhithreaded framework, go ahead and use the luxury support of non-blocking api, the resulting code might be efficient, might be clean if you know what are you doing. the point here is multithreading with asynchronous is possible, there are framework support these thing. to be honest, i think people that write multithreaded program will use non-blocking i/o if they can, their concern is performance. you can write clean, decoupled asynchronous code in multithreaded, because again these things aren't really relate.
@gravy1770
@gravy1770 4 жыл бұрын
He did not conflate the two though. He used examples of typical situations where synchronous calls are used with multi threading and asynchronous calls are used with single threading. His diagram of a thread pool even shows an asynchronous call being made
@jesuslovespee
@jesuslovespee 4 жыл бұрын
when exactly did he claim this?
@tsunekakou1275
@tsunekakou1275 4 жыл бұрын
@@jesuslovespee 6:50 , 7:17 "it has to wait". he did mention at 7:26 "thread pool with `synchronous` execution has that kind of behavior". he tried too hard on selling nodejs's singlethread model by compare it with a very inefficient multithread model and failed mention about multithread with asynchronous. yes, he didn't claim mutlthread models can't do asynchronous. I won't discuss this anymore, he didn't even bother to comment, so it's a negetive-sum game.
@MultiMtech
@MultiMtech Жыл бұрын
I was also Java Programmer and loved to write java programs... But since I started learning NodeJS, I really get in love with Node.Js specially with Nest.JS Framework...
@alfredoeleazarorozcoquesad2988
@alfredoeleazarorozcoquesad2988 4 жыл бұрын
Great! Very clear! thank you.
@Another0neTime
@Another0neTime 4 жыл бұрын
Awesome job as always!
@abdelmalek8045
@abdelmalek8045 4 жыл бұрын
What i retain is that Node is well designed for I/O intensive systems, certainly the reason of its success in widely used microservices architecures. Gonna learn it. Thanks!
@shikharchaudhary6984
@shikharchaudhary6984 4 жыл бұрын
Thanks you so much for this video.
@fisnik8965
@fisnik8965 4 жыл бұрын
Very useful explanation ... This video should be used also to explain Single Vs Multi-threaded systems, not only for Node Js. Great Job (Y)
@NileshAkhade
@NileshAkhade 4 жыл бұрын
I'm with you since you uploaded first springboot video. Waiting to learn Promises and Streams from you.
@sumathisreebaskarrao1547
@sumathisreebaskarrao1547 2 жыл бұрын
You are a life saviour Mr.Koushik !
@smmehrab
@smmehrab 3 жыл бұрын
It was really helpful! Thank you!
@megazord5696
@megazord5696 4 жыл бұрын
Thanks for sharing!! Amazing Job! Could you do a video about front-end architecture and when to use it? :)
@mechenzyhammah3001
@mechenzyhammah3001 4 жыл бұрын
You are the best teacher online. Like 👍
@VladBurlutsky
@VladBurlutsky 4 жыл бұрын
Cool video, thanks man!
@user-yw6ru1iy9j
@user-yw6ru1iy9j 3 ай бұрын
very good explanation! Thanks.
@Akshhacks
@Akshhacks 4 жыл бұрын
You teach really good, thanks
@linqcodmax8965
@linqcodmax8965 4 жыл бұрын
Good work! Can u make this kind of video about Django framework?
@estessaouira1900
@estessaouira1900 4 жыл бұрын
compute intensive is no more problem for nodeJs due to Worker Threads on node 10.5.0 .
@manikanth2166
@manikanth2166 4 жыл бұрын
Still it carries the javascript overhead which is quite negated with io bound concurrency. And 70% of the real world business require that io bound concurrency.
@johndoe-gt4rx
@johndoe-gt4rx 3 жыл бұрын
@@manikanth2166 yeah it really depends on the size of the project/business as well. Node is so quick and painless to develop for that it's worth using for almost any app that will have a small userbase. I've even just gone and created microservices with GO that sit on the same box and communicate with the main node web server through a REST api.
@rguntu9
@rguntu9 4 жыл бұрын
Great info Thanks.
@sarahchohan6583
@sarahchohan6583 3 жыл бұрын
Very well explained. After watching this video had subscribed to that channel for upcoming videos.
@RAVIKUMAR-hl3ik
@RAVIKUMAR-hl3ik 2 жыл бұрын
Thank you very much it really gave me clarity
@montenague
@montenague 4 жыл бұрын
Very Helpful!
@thanasisathanasi4965
@thanasisathanasi4965 4 жыл бұрын
You have a very cool personality and style that I like !!!
@VMEcycle6
@VMEcycle6 4 жыл бұрын
perfect explanation.
@MrJonathandsouza
@MrJonathandsouza Жыл бұрын
You can always use process manager like pm2 to spawn multiple instances of your node app and then act like a load balancer.
@Dev-Siri
@Dev-Siri 9 ай бұрын
this is a good enough approach, although processes are heavier than real multi-threading. Worker threads solve this well but they have a funny api.
@erinmcgowan7980
@erinmcgowan7980 3 жыл бұрын
The ammount of info in here is amazing =)
@user-to9gg1wm7v
@user-to9gg1wm7v 2 жыл бұрын
Thanks and I really like you work...keep it up .
@ragingpahadi
@ragingpahadi 3 жыл бұрын
i like this series when and when not ! :D "Just because you can do it doesn't mean you should do it"
@khushgandhi6638
@khushgandhi6638 4 жыл бұрын
Thank you so much sirji ♥️
@rodpadev
@rodpadev 4 жыл бұрын
Great video!
@mujkocka
@mujkocka Жыл бұрын
very nice videos. with a lot of design decision info. Devil is in the detail. so important.
@hyperborean72
@hyperborean72 4 жыл бұрын
How nice that the color of your jacket is the same as the color of the font and the frame in your presentation
@sarathchandran2815
@sarathchandran2815 3 жыл бұрын
Amazing presentation sir❤
@alon.galperin
@alon.galperin 4 жыл бұрын
Great video, thank you! small request - can you please create playlist of Node.js Basics so it will be easier to follow? Thnaks
@wontonfuton
@wontonfuton 4 жыл бұрын
Would I be correct in saying that NodeJS handles jobs equivalently as using SelectionKey and Selector in java?
@ernestmolner18
@ernestmolner18 2 жыл бұрын
You can make node multi thread if you want to. It is not usually that way but there are modules that make it as multi thread as you want it to be.
@lifedatatech6917
@lifedatatech6917 3 жыл бұрын
Great explanation!
@ramshankarkumar4222
@ramshankarkumar4222 Жыл бұрын
this content is awesome!!🎉 Thank you so much 😀 Just one question -- In multi threaded programming language, how number of thread pool is defined? Is it predefined by language or is configured by developer only? In any case, what could be the maximum number of thread pool can be created? Is there any parameters for it? Please answer if possible. Thanks
@playthesent
@playthesent 4 жыл бұрын
sir your really awsome like your explanation. to understand
@alshojamikbal8510
@alshojamikbal8510 4 жыл бұрын
Sooperb man fabulous😍
@gibranmohammadkhan6216
@gibranmohammadkhan6216 4 жыл бұрын
Please do a series on Design Patterns, if possible. Thanks
@rezmed1144
@rezmed1144 4 жыл бұрын
you have the art of explaining
@emanueltejadacoste2250
@emanueltejadacoste2250 4 жыл бұрын
New Sub! !!!!! Didnt know this channel !
@mpdcuk
@mpdcuk 4 жыл бұрын
I like how your hoodie colour matches the purple of the border and font.
@blisteredoutlaw1993
@blisteredoutlaw1993 4 жыл бұрын
Thanks to KZfaq algorithm for suggesting your channel to me!
@keshavkumar8385
@keshavkumar8385 2 жыл бұрын
explained really well ❤️
@aki1840
@aki1840 Жыл бұрын
Great explanation! Unbiased opinion on Node. I’m tired of all these haters 😂
@santanubaishya9504
@santanubaishya9504 4 жыл бұрын
Very nice content . Could you please give one or two practical examples of blocking operations.
@TP_Raks
@TP_Raks 4 жыл бұрын
The Hero we need but don't deserve. 😢Thank you so much good Sir. Great explanation
@sumitdas-kr6fe
@sumitdas-kr6fe 3 жыл бұрын
Very good explanation.
@cruzortiz5233
@cruzortiz5233 4 жыл бұрын
Hi excellent resource, i have a question. When talking about node and that computing intesive task, are things that node isn´t good for, i was wondering, about promises ?. If we wrap that computing intesive process into a promise, we wont block the main thread and we can still be able to build those types of app ?
@Samuel-ql7tq
@Samuel-ql7tq 4 жыл бұрын
Cruz Ortiz No, promises are nothing but a syntactic sugar on top of callbacks so it basically means whatever computation heavy task you wrapped inside promises still have to be executed by node’s main thread only
@KuroManX
@KuroManX 9 ай бұрын
You can use the client side with some react/vue/svelt to handle complex calculation, it's not ideal, but can help
@ankitkalavagunta8951
@ankitkalavagunta8951 10 ай бұрын
Very well explained!
@delavago5379
@delavago5379 4 жыл бұрын
No offense but as a person from the Caribbean that normally needs a clear English accent to understand these videos your video was really clear and informative. Thank you 💕
@FedJimSmith
@FedJimSmith 3 жыл бұрын
very nice explanation
@sivakumarg98
@sivakumarg98 2 жыл бұрын
hey nice explanation dude, specifically when not to use, lovely :)
@AnonymousAccount514
@AnonymousAccount514 4 жыл бұрын
its nice to see your face...after only hearing your voice for years
@magomedsouleymanov9946
@magomedsouleymanov9946 4 жыл бұрын
You're good bro !!
@mib3429
@mib3429 4 жыл бұрын
Awesome explanation. A comparison with Spring Boot would be even more meaningful specially for the peoples' following you from Java background. That way, people can relate more about which framework* excels on what. * just saying nodejs a framework to generalize things. I'm aware its a run-time and not a framework per se.
@spandiar
@spandiar 4 жыл бұрын
my thoughts too exactly
The Hidden Cost Of GraphQL And NodeJS
28:35
ThePrimeTime
Рет қаралды 178 М.
Chips evolution !! 😔😔
00:23
Tibo InShape
Рет қаралды 31 МЛН
didn't want to let me in #tiktok
00:20
Анастасия Тарасова
Рет қаралды 12 МЛН
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,5 МЛН
Spring Boot vs. Node | express.js vs Spring Boot
8:58
Jan Goebel
Рет қаралды 53 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 624 М.
Is TypeScript (NodeJS) Faster than Go?? |  A server comparison
9:54
ThePrimeagen
Рет қаралды 210 М.
Top 5 JUnit Tips You Should Know - Java Brains
15:56
Java Brains
Рет қаралды 24 М.