PPPriyanshu Pandeyinblog-about-web-dev.hashnode.dev·May 5 · 13 min readAsync JavaScript in Node.js — Callbacks, Callback Hell, and PromisesNode.js does something that surprises most developers coming from other languages. When you ask it to read a file, it doesn't wait. It registers what to do when the file is ready, moves on to the next00
PPPriyanshu Pandeyinblog-about-web-dev.hashnode.dev·May 5 · 13 min readSessions, Cookies, and JWT — Understanding Authentication in Node.jsEvery web application eventually asks the same question: how do I know who this person is? HTTP doesn't help. It's stateless by design — each request arrives with no memory of anything that came befor00
PPPriyanshu Pandeyinblog-about-web-dev.hashnode.dev·May 5 · 11 min readFile Storage and Serving in Express — Where Uploads Go and How to Access ThemUploading a file is only half the job. Once Multer processes the incoming request and saves the file, a new set of questions opens up. Where exactly did it go? How does a browser access it later? Is y00
PPPriyanshu Pandeyinblog-about-web-dev.hashnode.dev·May 5 · 9 min readURL Parameters vs Query Strings in Express — Know the DifferenceEvery URL tells a story. /users/42 — fetch the user with ID 42. /products?category=shoes&sort=price — get products, filtered by shoes, sorted by price. Both URLs pass data to your server. Both look si00
PPPriyanshu Pandeyinblog-about-web-dev.hashnode.dev·May 4 · 10 min readHow Node.js Handles Thousands of Requests on a Single ThreadThe first time someone tells you Node.js is single-threaded, it sounds like a limitation. One thread. One thing at a time. How could that possibly handle thousands of users hitting your server simulta00