Mastering Event-Driven Architecture in Node.js
Today, we are diving deep into a concept that will fundamentally change how you structure your Node.js and Express backends. Let's break down what EDA is, why you need it, and how to implement it nati
Search for a command to run...
Articles tagged with #nodejs
Today, we are diving deep into a concept that will fundamentally change how you structure your Node.js and Express backends. Let's break down what EDA is, why you need it, and how to implement it nati
A while back, Node introduced the worker_threads module. It allows parallel execution, Real multi-tasking. How you actually code it It’s surprisingly simple. You just need two files. The Bottleneck Lets understand this with a very simple and realisti...
To truly understand how that magic works, we need to look under the hood. We are going to implement a basic OAuth flow using nothing but standard Node.js and Express. No NextAuth, no better-auth, nothing. The Problem: Why Does OAuth Even Exist? Imagi...
1. Why Build Express From Scratch? Ever wondered what's actually happening under the hood when you type app.get()? Express feels like magic because it is abstraction done right. It hides the messy parts of handling HTTP requests so we can focus on sh...
if you really want to understand how servers work, you need to go one level lower. You need to touch the raw metal. You need to build a server using the core http module. That’s what this post is about. In this we are gonna - Understand what HTTP ac...
well well well, I love this stuff, my eyes lit up when I understood the concept. I hope I can do justice to this amazing engineering. before getting started, two important questions to answer. 1. Is nodejs single-threaded ?YES 2. Node.js is also non-...