{"slug":"nodejs-runtime","group":"backend","title":"Node.js od środka","short":"Pętla zdarzeń, libuv, V8, strumienie i wątki robocze – co naprawdę dzieje się pod `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 i API","intro":"","servedLang":"pl","primaryArticle":{"id":"6b09aa825a5e2dbc3f20a4a3","slug":"nodejs-runtime","title":"Node.js od środka – pętla zdarzeń, mikrozadania, strumienie, worker threads i wycieki pamięci","summary":"Jak naprawdę działa Node.js 24: V8, libuv i pula wątków, fazy pętli zdarzeń, process.nextTick kontra Promise (i dlaczego w ESM kolejność jest inna), blokowanie pętli i jak je zmierzyć, strumienie z backpressure, worker threads kontra cluster oraz wykrywanie wycieków pamięci i profilowanie – z prawdziwymi wynikami uruchomień.","servedLang":"pl","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":17,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:06:25.996Z","updatedAt":"2026-11-27T17:22:48.591Z","challengeCount":0,"quizCount":0},"articles":[{"id":"6b09ab669843bccb708a3cb3","slug":"poc-guide","title":"PoC, spike, prototyp, MVP – jak zaplanować i przeprowadzić PoC (z działającym przykładem)","summary":"Czym różnią się spike, PoC, prototyp, MVP i pilotaż, kiedy PoC naprawdę jest potrzebny i jak go poprowadzić: hipoteza, mierzalne kryteria sukcesu, timebox, cięcie zakresu, plan, raport i decyzja go/no-go zapisana w ADR. Na przykładzie platformy ładowania aut elektrycznych VoltGo: czy brama OCPP w Node.js z Kafką przyjmie telemetrię z 10 000 ładowarek przy p95 < 300 ms? Kod bramy i konsumenta w TypeScript, skrypt k6, przykładowe wyniki, szablony planu i raportu do pobrania oraz pułapka „PoC trafia na produkcję”.","servedLang":"pl","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":29,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:10:14.785Z","updatedAt":"2026-11-27T16:14:12.340Z","relation":{"position":3,"primary":false,"mainTopic":{"slug":"solution-architecture","title":"Solution Architect – rola i warsztat"}}}],"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":"Logowanie i rejestracja","icon":"key-round","status":"available","current":false},{"slug":"nodejs-runtime","title":"Node.js od środka","icon":"cpu","status":"available","current":true}]}