ABAbhinav Bistinabhinav-bist.hashnode.dev00How Node.js Handles Multiple Requests with a Single ThreadMay 10 · 3 min read · Single-threaded nature of Node.js Node.js uses only one main thread to execute the JavaScript code . Traditional model Request 1 → Thread 1 Request 2 → Thread 2 Request 3 → Thread 3 Creating many tJoin discussion
ABAbhinav Bistinabhinav-bist.hashnode.dev00URL Parameters vs Query Strings May 9 · 2 min read · What are URL parameters? URL parameters are dynamic values inside the URL path that help identify the specific resource . They are commonly used with frameworks like Express.js for routing . In ExprJoin discussion
ABAbhinav Bistinabhinav-bist.hashnode.dev00Storing and serving files in Express May 9 · 4 min read · Where uploaded files are stored Uploaded files could be stored on different places depending on the architecture of the application . 1. Local Storage project/ │ ├── uploads/ │ ├── image1.png │ ├Join discussion
ABAbhinav Bistinabhinav-bist.hashnode.dev00Sessions vs JWT vs CookiesMay 8 · 3 min read · Introduction to sessions Normally , HTTP are stateless which means every request is treated as completely new . Without sessions You send username/password Server verifies you Next request comes Join discussion
ABAbhinav Bistinabhinav-bist.hashnode.dev00Async Code in Node.jsMay 8 · 3 min read · Why async code But why do we even need async code ?? Node.js uses single threaded architecture . It means it runs JavaScript in only one thread . Suppose you are doing a task which takes long time (ReJoin discussion