{"slug":"nodejs-runtime","group":"backend","title":"Node.js internals","short":"The event loop, libuv, V8, streams and worker threads – what really happens under `node server.js`.","icon":"cpu","aliases":["Node.js internals","event loop","pętla zdarzeń","libuv","V8","worker threads"],"order":805,"status":"available","articleCount":2,"groupTitle":"Backend & API","intro":"","servedLang":"en","primaryArticle":{"id":"6b09aa825a5e2dbc3f20a4a3","slug":"nodejs-runtime","title":"Node.js under the hood – the event loop, microtasks, streams, worker threads and memory leaks","summary":"How Node.js 24 really works: V8, libuv and the thread pool, the event loop phases, process.nextTick vs Promise (and why the order differs in ESM), blocking the loop and how to measure it, streams with backpressure, worker threads vs cluster, and finding memory leaks and profiling – with real run outputs.","servedLang":"en","availableLangs":["pl","en"],"topics":["nodejs-runtime","nodejs","express"],"techs":["node","typescript","javascript"],"tags":["node-24","event-loop","libuv","microtasks","streams","backpressure","worker-threads","cluster","memory-leaks","profiling","heap-snapshot"],"level":"advanced","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":18,"stats":{"views":3,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:06:25.996Z","updatedAt":"2026-11-27T17:30:37.325Z","challengeCount":0,"quizCount":0},"articles":[{"id":"6b09ab669843bccb708a3cb3","slug":"poc-guide","title":"PoC, spike, prototype, MVP – how to plan and run a PoC (with a working example)","summary":"How a spike, a PoC, a prototype, an MVP and a pilot differ, when a PoC is really needed and how to run one: a hypothesis, measurable success criteria, a timebox, a scope cut, a plan, a report and a go/no-go decision recorded in an ADR. On the example of the VoltGo EV charging platform: can a Node.js OCPP gateway with Kafka ingest telemetry from 10,000 chargers at p95 < 300 ms? Gateway and consumer code in TypeScript, a k6 script, example results, downloadable plan and report templates, and the “PoC goes to production” trap.","servedLang":"en","availableLangs":["pl","en"],"topics":["solution-architecture","event-driven-architecture","aws-scalability","nodejs-runtime"],"techs":["typescript","node","general"],"tags":["solution-architect","proof-of-concept","spike","prototype","mvp","k6","load-testing","kafka","ocpp","ev-charging"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":32,"stats":{"views":3,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:10:14.785Z","updatedAt":"2026-11-27T17:23:54.619Z","relation":{"position":3,"primary":false,"mainTopic":{"slug":"solution-architecture","title":"Solution Architect – role and craft"}}}],"challenges":[],"resources":[{"id":"6b0857b13c96f2d34d0b3399","type":"repo","provider":"github","url":"https://github.com/goldbergyoni/nodebestpractices","embedUrl":null,"title":"goldbergyoni/nodebestpractices","description":"✅ The Node.js best practices list (July 2026)","author":"goldbergyoni","thumbnailUrl":"https://opengraph.githubassets.com/1/goldbergyoni/nodebestpractices","durationSec":null,"lang":"en","topics":["microservices"],"techs":["node","javascript"],"tags":["best-practices","es6","eslint","express","expressjs","javascript","testing","jest","microservices","mocha"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2017-09-15T08:33:19.000Z","popularity":97,"verifiedAt":"2026-11-26T10:52:30.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b0857b23c96f2d34d0b35c0","type":"repo","provider":"github","url":"https://github.com/PacktPublishing/Node.js-Design-Patterns-Third-Edition","embedUrl":null,"title":"PacktPublishing/Node.js-Design-Patterns-Third-Edition","description":"Node.js Design Patterns Third Edition, published by Packt","author":"PacktPublishing","thumbnailUrl":"https://opengraph.githubassets.com/1/PacktPublishing/Node.js-Design-Patterns-Third-Edition","durationSec":null,"lang":"en","topics":[],"techs":["node","javascript"],"tags":["book","books","design-patterns","examples","javascript","node","node-js","nodejs","patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2019-10-16T05:20:02.000Z","popularity":64,"verifiedAt":"2026-11-26T10:57:25.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"},{"id":"6b0857bf3c96f2d34d0b4262","type":"article","provider":"web","url":"https://aws.amazon.com/builders-library/avoiding-insurmountable-queue-backlogs","embedUrl":null,"title":"Avoiding insurmountable queue backlogs | AWS Builder Center","description":"How Amazon prevents queue backlogs from becoming unrecoverable, using backpressure, prioritization, and constant work to drain queues safely.","author":"Amazon Builders' Library","thumbnailUrl":"https://builder.aws.com/assets/og-hiXAX-on.png","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["aws","distributed-systems","cloud"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2019-12-05T12:00:00.000Z","popularity":65,"verifiedAt":"2026-11-26T11:25:40.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857bf3c96f2d34d0b425b","type":"article","provider":"web","url":"https://learn.microsoft.com/en-us/azure/architecture/guide/architecture-styles/web-queue-worker","embedUrl":null,"title":"Web-Queue-Worker Architecture Style","description":"Learn about the Web-Queue-Worker pattern. Discover benefits, challenges, and implementation by using Azure App Service, Azure Functions, and message queues.","author":"Microsoft Azure Architecture Center","thumbnailUrl":"https://learn.microsoft.com/en-us/media/open-graph-image.png","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["azure","cloud","software-architecture","messaging"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":66,"verifiedAt":"2026-11-26T11:07:38.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857c03c96f2d34d0b4394","type":"article","provider":"web","url":"https://shopify.engineering/adventures-in-garbage-collection","embedUrl":null,"title":"Adventures in Garbage Collection: Improving GC Performance in our Massive Monolith - Shopify","description":"At the beginning of this year, we ran several experiments aimed at reducing the latency impact of the Ruby garbage collector (GC) in Shopify's monolith. In this article, Jean talks about the changes we made to improve GC performance, and more importantly, how we got to these changes.","author":"Shopify Engineering","thumbnailUrl":"https://cdn.shopify.com/s/files/1/0779/4361/articles/GCfixed.png?v=1681399892","durationSec":null,"lang":"en","topics":["monolith"],"techs":["general"],"tags":["performance","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":50,"verifiedAt":"2026-11-26T11:28:35.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857c43c96f2d34d0b4706","type":"book","provider":"openlibrary","url":"https://openlibrary.org/works/OL19542323W","embedUrl":null,"title":"Node.js in Action","description":"","author":"Alex R. Young, Bradley Meck, Mike Cantelon, Tim Oxley","thumbnailUrl":"https://covers.openlibrary.org/b/id/8508246-L.jpg","durationSec":null,"lang":"en","topics":[],"techs":["node","javascript"],"tags":["book"],"price":"paid","featured":false,"featuredOrder":0,"packageName":null,"source":"openlibrary","publishedAt":"2017-01-01T00:00:00.000Z","popularity":37,"verifiedAt":"2026-11-26T11:00:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:07.480Z","updatedAt":"2026-11-26T16:01:07.480Z"}],"resourceGroups":[{"type":"article","items":[{"id":"6b0857bf3c96f2d34d0b4262","type":"article","provider":"web","url":"https://aws.amazon.com/builders-library/avoiding-insurmountable-queue-backlogs","embedUrl":null,"title":"Avoiding insurmountable queue backlogs | AWS Builder Center","description":"How Amazon prevents queue backlogs from becoming unrecoverable, using backpressure, prioritization, and constant work to drain queues safely.","author":"Amazon Builders' Library","thumbnailUrl":"https://builder.aws.com/assets/og-hiXAX-on.png","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["aws","distributed-systems","cloud"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2019-12-05T12:00:00.000Z","popularity":65,"verifiedAt":"2026-11-26T11:25:40.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857bf3c96f2d34d0b425b","type":"article","provider":"web","url":"https://learn.microsoft.com/en-us/azure/architecture/guide/architecture-styles/web-queue-worker","embedUrl":null,"title":"Web-Queue-Worker Architecture Style","description":"Learn about the Web-Queue-Worker pattern. Discover benefits, challenges, and implementation by using Azure App Service, Azure Functions, and message queues.","author":"Microsoft Azure Architecture Center","thumbnailUrl":"https://learn.microsoft.com/en-us/media/open-graph-image.png","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["azure","cloud","software-architecture","messaging"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":66,"verifiedAt":"2026-11-26T11:07:38.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857c03c96f2d34d0b4394","type":"article","provider":"web","url":"https://shopify.engineering/adventures-in-garbage-collection","embedUrl":null,"title":"Adventures in Garbage Collection: Improving GC Performance in our Massive Monolith - Shopify","description":"At the beginning of this year, we ran several experiments aimed at reducing the latency impact of the Ruby garbage collector (GC) in Shopify's monolith. In this article, Jean talks about the changes we made to improve GC performance, and more importantly, how we got to these changes.","author":"Shopify Engineering","thumbnailUrl":"https://cdn.shopify.com/s/files/1/0779/4361/articles/GCfixed.png?v=1681399892","durationSec":null,"lang":"en","topics":["monolith"],"techs":["general"],"tags":["performance","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":50,"verifiedAt":"2026-11-26T11:28:35.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"}]},{"type":"book","items":[{"id":"6b0857c43c96f2d34d0b4706","type":"book","provider":"openlibrary","url":"https://openlibrary.org/works/OL19542323W","embedUrl":null,"title":"Node.js in Action","description":"","author":"Alex R. Young, Bradley Meck, Mike Cantelon, Tim Oxley","thumbnailUrl":"https://covers.openlibrary.org/b/id/8508246-L.jpg","durationSec":null,"lang":"en","topics":[],"techs":["node","javascript"],"tags":["book"],"price":"paid","featured":false,"featuredOrder":0,"packageName":null,"source":"openlibrary","publishedAt":"2017-01-01T00:00:00.000Z","popularity":37,"verifiedAt":"2026-11-26T11:00:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:07.480Z","updatedAt":"2026-11-26T16:01:07.480Z"}]},{"type":"repo","items":[{"id":"6b0857b13c96f2d34d0b3399","type":"repo","provider":"github","url":"https://github.com/goldbergyoni/nodebestpractices","embedUrl":null,"title":"goldbergyoni/nodebestpractices","description":"✅ The Node.js best practices list (July 2026)","author":"goldbergyoni","thumbnailUrl":"https://opengraph.githubassets.com/1/goldbergyoni/nodebestpractices","durationSec":null,"lang":"en","topics":["microservices"],"techs":["node","javascript"],"tags":["best-practices","es6","eslint","express","expressjs","javascript","testing","jest","microservices","mocha"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2017-09-15T08:33:19.000Z","popularity":97,"verifiedAt":"2026-11-26T10:52:30.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b0857b23c96f2d34d0b35c0","type":"repo","provider":"github","url":"https://github.com/PacktPublishing/Node.js-Design-Patterns-Third-Edition","embedUrl":null,"title":"PacktPublishing/Node.js-Design-Patterns-Third-Edition","description":"Node.js Design Patterns Third Edition, published by Packt","author":"PacktPublishing","thumbnailUrl":"https://opengraph.githubassets.com/1/PacktPublishing/Node.js-Design-Patterns-Third-Edition","durationSec":null,"lang":"en","topics":[],"techs":["node","javascript"],"tags":["book","books","design-patterns","examples","javascript","node","node-js","nodejs","patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2019-10-16T05:20:02.000Z","popularity":64,"verifiedAt":"2026-11-26T10:57:25.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"}]}],"siblings":[{"slug":"express","title":"Express","icon":"server","status":"available","current":false},{"slug":"nestjs","title":"NestJS","icon":"boxes","status":"available","current":false},{"slug":"swagger-openapi","title":"Swagger / OpenAPI","icon":"file-json","status":"available","current":false},{"slug":"authentication","title":"Authentication","icon":"key-round","status":"available","current":false},{"slug":"nodejs-runtime","title":"Node.js internals","icon":"cpu","status":"available","current":true}]}