Async Code in Node.js: Callbacks and Promises
If you've been writing Node.js for even a short time, you've noticed something — almost nothing happens immediately. Reading a file, querying a database, making a network request — everything takes ti

Search for a command to run...
Articles tagged with #nodejs
If you've been writing Node.js for even a short time, you've noticed something — almost nothing happens immediately. Reading a file, querying a database, making a network request — everything takes ti

One of the first things that confused me about Node.js was this it's single-threaded, but it can handle thousands of requests at once. That sounds like a contradiction. How does one thread do the work
Every backend journey starts somewhere. And for most people learning Node.js, "somewhere" is a blank terminal with no idea what to type first. This post is that first step getting Node installed, unde

When I first started learning web development, JavaScript was just the thing that made websites interactive. Buttons clicked, forms validated, things moved around on the page. That was it. Backend? Th

When I first started learning backend development, one of the first questions I had was — why Node.js? There are so many backend options out there. Python, Java, PHP, Go. Why do so many people and com
If you are the one of my reader of my post which was on the event loop, you have already covered that Node.js is a single-threaded which means One thread, one thing at a time. if not read that then vi