Day 10 of making my slef a BRAND 1 : Node js depend on Googles V8 to convert js code into machine code and libuv for file accessing and thread pools etc 2 : As in node environment js runs in a single thread, 1. program is initiallized, 2. top level code is executed, 3.modules are required, 4. callbacks are registered, 5 . event loop starts running. 3 : event loops executes the callbacks and if some code takes longer to run that is pushed to threads in the thread pool 4 : there can be 4 - 128 threads in the thread pool 5 : Node js is based on event driven architeccture, which means that events are thrown on multiple occassion eg. file reading is finished 6 : And callbacks are associated with events, those callbacks are executed in event loop 7 : And callbacks taking more time are provided to one of the thread from thread pool to be executed in background #NodeJS #JavaScript #BackendDevelopment #FullStackDeveloper #WebDevelopment #SoftwareEngineering #Programming #AsyncProgramming #EventLoop #V8Engine #Libuv #ThreadPool #NodeJSEventLoop #JavaScriptDeveloper #MERNStack #TechLearning #CodingJourney #DeveloperCommunity #CodeNewbie #NodeJSTips #JSPerformance #Concurrency #NonBlockingIO #ServerSideJS #WebDevCommunity #BackendEngineer #ScalableApps #TechEducation #LearningInPublic #BuildInPublic #100DaysOfCode #DeveloperLife #WebEngineering #CodingInsights #JSRuntime #NodeInternals #ProgrammingConcepts #AsynchronousCode #CodeWithUzair #TechExplained #JSArchitecture #SoftwareDeveloper #NodeJSLearning #NodeJSEngine #CodingDaily #CodeSharing #NodeMastery #V8AndLibuv #TechContent #DeveloperGrowth
Muhammad Uzair’s Post
More Relevant Posts
-
Day 8 of making my self a BRAND 1 : Node js works with modules, there are core modules which are built in modules and external modules which can be installed from some package manager like npm, pnpm, yarn etc 2 : commonly used built in modules are fs, http, https, path etc 3 : commonly used external modules : express, dotenv, mongoose etc 4 : ask AI to list common modueles 5 : You might have heared about async in js but have you ever asked why it even exist, every body knows that async is which runs in the background but why to even run in the background. 6 : The reason that it exists because js in single threaded on browser and in node js environment as well so not to block the call stack in which the code is executed we use async in js #Nodejs #JavaScript #AsyncJS #WebDevelopment #BackendDevelopment #FullStackDevelopment #Coding #Programming #Developers #TechCommunity #NodeModules #CoreModules #ExpressJS #NPM #NodeTips #LearnNodeJS #NodeDeveloper #ServerSide #BackendEngineer #JavaScriptRuntime #100DaysOfCode #CodeNewbie #LearningInPublic #DeveloperJourney #SelfImprovement #BuildInPublic #CodingJourney #SkillUp #ContinuousLearning #TechEducation #AsyncProgramming #EventLoop #Concurrency #SingleThreaded #NonBlockingIO #WebServers #CodeBetter #DevTips #TechInsights #ProgrammingConcepts #Day8 #MakeYourselfABrand #PersonalBranding #DeveloperBrand #CodingMindset #ConfidenceInCoding #TechCareer #GrowthMindset #MotivationForDevelopers #LearnBuildGrow
To view or add a comment, sign in
-
🚀 Excited to share my latest article: Data Handling in NestJS: DTOs, Validation, and Pipes for Robust APIs! 🌐💻 ✨ Dive into the essentials of building resilient APIs with NestJS. From Data Transfer Objects to validation and pipes, I've got you covered! 🔍 Check it out on my website and let me know your thoughts! 👇 https://lnkd.in/d2VmKF_G #NestJS #APIDevelopment #WebDevelopment #Programming #BackEnd #BackEndDevelopment #FullStackDeveloper #FullStackDevelopment #JavaScript #JS #TS #TypeScript
To view or add a comment, sign in
-
🧵 Understanding Threads in Node.js – The Power Behind the Scenes When people hear “Node.js is single-threaded”, they often assume it can only handle one task at a time. But that’s only part of the story. Node.js runs JavaScript code in a single main thread, but under the hood, it uses libuv — a powerful C library that manages a thread pool for handling I/O operations efficiently. That’s why Node can serve thousands of concurrent requests without breaking a sweat 😎 💡 With the introduction of Worker Threads, Node.js now lets you run CPU-intensive tasks in parallel — without blocking the event loop. Perfect for data processing, image manipulation, or machine learning workloads. So next time someone says “Node can’t do multithreading,” you’ll know better 😉 🚀 Threads + Event Loop = Scalable Power #NodeJS #JavaScript #WebDevelopment #SoftwareEngineering #BackendDevelopment #Programming #Developers #Concurrency #Async #TechInsights #cfbr
To view or add a comment, sign in
-
🚀 Leveling Up My Node.js Understanding: Beyond “It Just Works” Over the past few days, I’ve been digging really deep into Node.js — not just building APIs, but understanding what’s actually happening under the hood when Node handles concurrency and scalability. I kept hearing about: Worker Threads Child Processes Clusters …and I finally took the time to understand what each really does — and why they exist. 💡 Worker Threads → For CPU-heavy JavaScript tasks like hashing or image compression — real multithreading inside a process. 💡 Child Processes → For running external programs or scripts (Python, ffmpeg, another Node file) — separate memory, separate process. 💡 Cluster Module → For scaling Node.js servers across all CPU cores, with automatic load balancing handled by Node itself. Together, these three make Node.js capable of both concurrency and parallelism — when used wisely. It’s fascinating to see how far Node can go when you stop just coding and start thinking about system design and scalability. Next up: experimenting with a cluster + worker_threads architecture for true high-performance backend processing ⚡ Because being a developer isn’t about just “making it work” — it’s about understanding why it works and how to make it scale. #NodeJS #BackendDevelopment #JavaScript #Scalability #Concurrency #Performance #CleanArchitecture #DeveloperMindset #LearningJourney
To view or add a comment, sign in
-
-
🔁 JavaScript Loops — They Literally Put Me in a Loop 😅 Started learning loops today, and wow… they’re the real deal when it comes to writing less code that does more! ⚙️ Loops basically say: > “Why write it ten times when I can do it for you?” 😎 Here’s what I explored 👇 🔹 for loop — when you know exactly how many times to run 🔹 while loop — keeps going as long as the condition’s true 😆 🔹 do...while — runs at least once, no matter what 🔹 for...of / for...in — the cleanest way to loop through arrays and objects It’s crazy how something so simple can automate so much logic 🔄 Feeling one step closer to thinking like a developer now 💪 Next stop → Functions, where the real magic begins! ✨ #JavaScript #WebDevelopment #Frontend #CodingJourney #Loops #Programming #LearningInPublic #DeveloperLife #CleanCode #100DaysOfCode
To view or add a comment, sign in
-
-
🔥 Next.js 16 is here With Turbopack as default, projects build insanely fast ⚡ New “use cache” directive changes how caching works 🧠 Plus, proxy.ts, streamed metadata, and smarter routing make apps smoother than ever. It’s fast, modern, but yeah, upgrading from v15 needs a bit of care 👀 Explored it in detail, trust me, this version really pushes Next.js to the next level 🚀 🔗 Official Release: nextjs.org/blog/next-16 #Nextjs16 #Nextjs #React #WebDevelopment #Frontend #JavaScript #DevCommunity #Coding #Performance #Developers #Vercel #WebApps #TypeScript #WebPerformance #CodingCommunity #TechTrends #technology #innovation #future #digitaltransformation #technews #techtrends #engineering #programming #webdevelopment #techcommunity #frontend #backend #devlife #webdev #appdevelopment #machinelearning #deeplearning #neuralnetworks #datascience #automation #generativeai #chatgpt #openai #aidevelopment #aitechnology #futureofai #aitrends #aiinnovation #aiforbusiness #softwaredeveloper #softwareengineering #coding #programmer #developer #javascript #reactjs #nextjs #nodejs #typescript #python #cleanarchitecture #devcommunity #github #opensource #code #learning #careerdevelopment #techcareer #upskilling #motivation #linkedincommunity #personalbranding #jobsearch #growthmindset
To view or add a comment, sign in
-
🔥 Smallest Missing Multiple of K in JavaScript - 👉 Day 15 / Day 93 👈 👉 Given an integer array nums and a number k, return the smallest positive multiple of k that’s missing from nums. 🧠 Key idea: - Store numbers in a Set for constant-time lookup. - Increment through multiples of k until a missing one is found. #JavaScript #LeetCode #CodingChallenge #ProblemSolving #Algorithms #DataStructures #FrontendDeveloper #CodeNewbie #Programming #Tech #frontend #Angular #AngualrDeveloper
To view or add a comment, sign in
-
-
Diving deep into the Node.js Event Loop! ⚙️ Understanding this core concept is CRUCIAL for writing efficient and scalable server-side JavaScript. Ever wonder why Node.js can handle so many concurrent requests? It's all thanks to the event loop and its NON-BLOCKING I/O model. 🤯 Here are three key things to remember: 🔷 Understand the phases: Timer, Pending callbacks, Idle, Prepare, Poll, Check, Close callbacks. 🔷 Distinguish `setImmediate` vs `setTimeout(0)`: `setImmediate` is designed to execute after every poll phase. 🔷 Mind the `UV_THREADPOOL_SIZE`: Adjusting the thread pool size can optimize performance for CPU-intensive tasks. What's YOUR favorite Node.js optimization trick? Share it in the comments! 👇 #Nodejs #Javascript #EventLoop #Backend #Asynchronous #Programming #DevOps
To view or add a comment, sign in
-
🔥 Inside the V8 Engine — The Power Behind Node.js 🟢 Post 5/50 – 50 Days of Modern JavaScript Engineering 💡 Why is Node.js so fast? Because of V8 — the engine that turns JavaScript into machine code. ⚙️ How it works (step by step): 1️⃣ JavaScript Code → your source. 2️⃣ Ignition Interpreter → creates bytecode to run instantly. 3️⃣ TurboFan Compiler → optimizes repeated (“hot”) code paths. 4️⃣ CPU Machine Code → executes natively at full speed. 🚀 That’s why Node.js can handle huge loads while staying lightweight. 👉 Next: Post 6/50 – libuv & The Magic of Async I/O Follow Fuhaid Ur Rehman for daily Node.js insights and career-focused learning. #Nodejs #JavaScript #BackendDevelopment #V8Engine #FullStack #OpenToWork #WebDevelopment #NestJS #ReactJS #MongoDB #PostgreSQL
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development