{"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":1,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:06:25.996Z","updatedAt":"2026-11-27T16:08:49.322Z","requestedLang":"pl","theme":{"hero":"classic","heroMedia":null,"accent":"green","background":"hex","weaveResources":true,"toc":"right"},"seoDescription":"Node.js event loop krok po kroku – fazy libuv, mikrozadania i makrozadania, nextTick vs Promise w ESM i CommonJS, setImmediate vs setTimeout, monitorEventLoopDelay, stream pipeline i backpressure, worker_threads vs cluster, heap snapshot, --cpu-prof i typowe wycieki pamięci.","wordCount":3312,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"„Node.js jest jednowątkowy” to zdanie prawdziwe tylko w połowie. Twój kod JavaScript wykonuje się w jednym wątku, ale pod spodem pracują pula wątków libuv, asynchroniczne I/O systemu operacyjnego i garbage collector V8. Kiedy rozumiesz, jak te części współpracują, przestajesz się dziwić, że jedno "},{"type":"text","text":"JSON.parse","marks":[{"type":"code"}]},{"type":"text","text":" dużego pliku zatrzymuje wszystkie żądania HTTP, a eksport CSV zjada 700 MB pamięci. W tym poradniku każdą tezę sprawdzisz na działającym kodzie – wyniki w blokach „Wynik działania” pochodzą z prawdziwych uruchomień na Node.js 24."}]},{"type":"callout","attrs":{"variant":"info","title":"W skrócie"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Pętla zdarzeń wykonuje callbacki po kolei, w fazach","marks":[{"type":"bold"}]},{"type":"text","text":" (timery, poll, check…). Po każdym callbacku Node opróżnia kolejkę "},{"type":"text","text":"process.nextTick","marks":[{"type":"code"}]},{"type":"text","text":" i mikrozadań (Promise). Dopóki Twój kod liczy, nic innego się nie dzieje."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Pracę CPU przenosisz z wątku głównego","marks":[{"type":"bold"}]},{"type":"text","text":" do worker threads (albo do osobnej usługi lub kolejki zadań), a duże dane przetwarzasz strumieniami z "},{"type":"text","text":"pipeline()","marks":[{"type":"code"}]},{"type":"text","text":", które pilnują backpressure."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Mierz zamiast zgadywać","marks":[{"type":"bold"}]},{"type":"text","text":": "},{"type":"text","text":"monitorEventLoopDelay","marks":[{"type":"code"}]},{"type":"text","text":" pokazuje opóźnienie pętli, "},{"type":"text","text":"--cpu-prof","marks":[{"type":"code"}]},{"type":"text","text":" – gdzie idzie czas, a porównanie zrzutów sterty (heap snapshot) – co trzyma pamięć."}]}]}]}]},{"type":"callout","attrs":{"variant":"tip","title":"Co zbudujesz"},"content":[{"type":"paragraph","content":[{"type":"text","text":"Zestaw siedmiu krótkich programów „pierogarni” do uruchomienia jednym poleceniem "},{"type":"text","text":"npm run …","marks":[{"type":"code"}]},{"type":"text","text":": kolejność wykonania callbacków w ESM i CommonJS, raport sprzedaży liczony w wątku głównym i w worker threads z pomiarem opóźnienia pętli, filtrowanie 2 milionów zamówień z CSV strumieniem i „na raz”, zapis z backpressure i bez, klaster HTTP i symulację wycieku pamięci z poprawką. Node 24 uruchamia pliki "},{"type":"text","text":".ts","marks":[{"type":"code"}]},{"type":"text","text":" bezpośrednio, więc nie potrzebujesz kompilacji. Kod pobierzesz jako ZIP, a kolejność mikro- i makrozadań w przeglądarce sprawdzisz w przykładzie na żywo."}]}]},{"type":"paragraph","content":[{"type":"text","text":"Wymagania wstępne:","marks":[{"type":"bold"}]},{"type":"text","text":" Node.js 24 LTS lub nowszy (26 LTS też działa), dobra znajomość "},{"type":"text","text":"async","marks":[{"type":"code"}]},{"type":"text","text":"/"},{"type":"text","text":"await","marks":[{"type":"code"}]},{"type":"text","text":" i Promise, podstawy TypeScriptu. Przyda się "},{"type":"text","text":"poradnik Express","marks":[{"type":"link","attrs":{"href":"/pl/articles/express"}}]},{"type":"text","text":" albo "},{"type":"text","text":"NestJS","marks":[{"type":"link","attrs":{"href":"/pl/articles/nestjs"}}]},{"type":"text","text":"."}]},{"type":"stats","attrs":{"items":[{"value":"765 → 1,5 ms","label":"opóźnienie pętli (p99)","hint":"raport w wątku głównym vs w workerach"},{"value":"402 → 99 MB","label":"szczytowe RSS","hint":"`readFile` vs strumień przy 79 MB CSV"},{"value":"4","label":"wątki puli libuv","hint":"domyślnie (`UV_THREADPOOL_SIZE`)"},{"value":"6","label":"faz pętli zdarzeń","hint":"timers, pending, idle/prepare, poll, check, close"}]}},{"type":"heading","attrs":{"level":2,"id":"z-czego-sklada-sie-node-js"},"content":[{"type":"text","text":"Z czego składa się Node.js"}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart TB\n  JS[\"Twój kod JS/TS<br/>Express, NestJS, skrypty\"] --> V8[\"V8<br/>kompilacja JIT, sterta, GC\"]\n  JS --> API[\"Moduły Node<br/>fs, net, http, crypto, zlib, stream\"]\n  API --> UV[\"libuv: pętla zdarzeń\"]\n  UV --> OS[\"Asynchroniczne I/O systemu<br/>epoll / kqueue / IOCP<br/>sockety TCP, HTTP\"]\n  UV --> TP[\"Pula wątków (domyślnie 4)<br/>fs, dns.lookup,<br/>crypto.pbkdf2/scrypt, zlib\"]\n  OS -->|\"gotowe zdarzenie\"| UV\n  TP -->|\"wynik\"| UV\n  UV -->|\"callback\"| JS","caption":"Kod JavaScript, V8, libuv i system operacyjny"}},{"type":"paragraph","content":[{"type":"text","text":"Sieć nie zajmuje puli wątków – sockety obsługuje system operacyjny, a libuv dostaje powiadomienie, gdy dane są gotowe. Pula (4 wątki, zmienna "},{"type":"text","text":"UV_THREADPOOL_SIZE","marks":[{"type":"code"}]},{"type":"text","text":") obsługuje operacje, które w systemie nie mają dobrego asynchronicznego API: większość "},{"type":"text","text":"fs","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"dns.lookup","marks":[{"type":"code"}]},{"type":"text","text":", asynchroniczne "},{"type":"text","text":"crypto","marks":[{"type":"code"}]},{"type":"text","text":" (np. "},{"type":"text","text":"scrypt","marks":[{"type":"code"}]},{"type":"text","text":") i "},{"type":"text","text":"zlib","marks":[{"type":"code"}]},{"type":"text","text":". Jeśli serwer jednocześnie hashuje dziesiątki haseł i czyta pliki, te operacje czekają w jednej kolejce do czterech wątków."}]},{"type":"heading","attrs":{"level":2,"id":"fazy-petli-zdarzen"},"content":[{"type":"text","text":"Fazy pętli zdarzeń"}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart LR\n  T[\"timers<br/>setTimeout, setInterval\"] --> P[\"pending callbacks<br/>odroczone błędy I/O\"]\n  P --> I[\"idle, prepare<br/>wewnętrzne\"]\n  I --> PO[\"poll<br/>nowe zdarzenia I/O<br/>i ich callbacki\"]\n  PO --> C[\"check<br/>setImmediate\"]\n  C --> CL[\"close callbacks<br/>socket.on('close')\"]\n  CL --> T\n  M[\"po KAŻDYM callbacku:<br/>1. kolejka process.nextTick<br/>2. mikrozadania (Promise, queueMicrotask)\"] -.-> PO","caption":"Jedna iteracja pętli zdarzeń libuv; po każdym callbacku: nextTick, potem mikrozadania"}},{"type":"paragraph","content":[{"type":"text","text":"W każdej fazie pętla wykonuje callbacki z kolejki tej fazy. Od Node 11 kolejki "},{"type":"text","text":"nextTick","marks":[{"type":"code"}]},{"type":"text","text":" i mikrozadań są opróżniane "},{"type":"text","text":"po każdym pojedynczym callbacku","marks":[{"type":"bold"}]},{"type":"text","text":" (tak jak w przeglądarkach), a nie dopiero po całej fazie. Sprawdźmy to na kodzie."}]},{"type":"heading","attrs":{"level":2,"id":"krok-1-projekt"},"content":[{"type":"text","text":"Krok 1. Projekt"}]},{"type":"codeGroup","attrs":{"title":"package.json i tsconfig.json"},"content":[{"type":"codeBlock","attrs":{"language":"json","filename":"package.json"},"content":[{"type":"text","text":"{\n  \"name\": \"pierogi-node-runtime\",\n  \"private\": true,\n  \"version\": \"1.0.0\",\n  \"type\": \"module\",\n  \"engines\": { \"node\": \">=24\" },\n  \"scripts\": {\n    \"order\": \"node src/01-order.ts && node src/01-order.cjs\",\n    \"blocking\": \"node src/02-blocking.ts\",\n    \"data\": \"node src/make-orders-csv.ts\",\n    \"streams\": \"node src/03-streams.ts naive && node src/03-streams.ts stream\",\n    \"backpressure\": \"node src/04-backpressure.ts ignore && node src/04-backpressure.ts respect\",\n    \"cluster\": \"node src/05-cluster.ts\",\n    \"leak\": \"node --expose-gc src/06-leak.ts leak && node --expose-gc src/06-leak.ts fixed\",\n    \"typecheck\": \"tsc --noEmit\"\n  },\n  \"devDependencies\": {\n    \"@types/node\": \"^24.19.4\",\n    \"typescript\": \"~7.0.2\"\n  }\n}"}]},{"type":"codeBlock","attrs":{"language":"json","filename":"tsconfig.json"},"content":[{"type":"text","text":"{\n  \"compilerOptions\": {\n    \"target\": \"es2024\",\n    \"module\": \"nodenext\",\n    \"moduleResolution\": \"nodenext\",\n    \"types\": [\"node\"],\n    \"strict\": true,\n    \"noUncheckedIndexedAccess\": true,\n    \"noEmit\": true,\n    \"allowImportingTsExtensions\": true,\n    \"erasableSyntaxOnly\": true,\n    \"verbatimModuleSyntax\": true,\n    \"skipLibCheck\": true\n  },\n  \"include\": [\"src/**/*.ts\"]\n}"}]}]},{"type":"paragraph","content":[{"type":"text","text":"erasableSyntaxOnly","marks":[{"type":"code"}]},{"type":"text","text":" pilnuje, żebyś używał tylko składni TypeScriptu, którą Node potrafi po prostu usunąć (bez "},{"type":"text","text":"enum","marks":[{"type":"code"}]},{"type":"text","text":" i parametrów konstruktora z modyfikatorami). Dzięki temu "},{"type":"text","text":"node src/plik.ts","marks":[{"type":"code"}]},{"type":"text","text":" działa bez kroku budowania, a "},{"type":"text","text":"tsc --noEmit","marks":[{"type":"code"}]},{"type":"text","text":" tylko sprawdza typy."}]},{"type":"heading","attrs":{"level":2,"id":"krok-2-kolejnosc-wykonania-nexttick-promise-settimeout-setimmediate"},"content":[{"type":"text","text":"Krok 2. Kolejność wykonania: nextTick, Promise, setTimeout, setImmediate"}]},{"type":"paragraph","content":[{"type":"text","text":"Zacznij w przeglądarce. Przykład wypisuje kolejność zadań synchronicznych, mikrozadań i makrozadań. Drugi przycisk blokuje wątek główny na 500 ms – zobacz, kiedy wykona się "},{"type":"text","text":"setTimeout(…, 0)","marks":[{"type":"code"}]},{"type":"text","text":"."}]},{"type":"playground","attrs":{"template":"vanilla","files":{"/index.js":{"code":"import \"./styles.css\";\n\nconst app = document.getElementById(\"app\");\napp.innerHTML = `\n  <div class=\"bar\">\n    <button id=\"run\">Run again</button>\n    <button id=\"block\">Block the main thread for 500 ms</button>\n  </div>\n  <ol id=\"log\"></ol>`;\nconst list = document.getElementById(\"log\");\n\nfunction log(label, kind) {\n  console.log(`[${kind}] ${label}`);\n  const li = document.createElement(\"li\");\n  li.innerHTML = `<span class=\"tag ${kind}\">${kind}</span> ${label}`;\n  list.append(li);\n}\n\nfunction runOrderDemo() {\n  list.innerHTML = \"\";\n  log(\"script start\", \"sync\");\n\n  setTimeout(() => log(\"setTimeout(…, 0)\", \"macrotask\"), 0);\n\n  const channel = new MessageChannel();\n  channel.port1.onmessage = () => log(\"MessageChannel message\", \"macrotask\");\n  channel.port2.postMessage(null);\n\n  Promise.resolve().then(() => {\n    log(\"promise.then #1\", \"microtask\");\n    // A microtask queued by a microtask still runs before any macrotask.\n    Promise.resolve().then(() => log(\"promise.then queued inside a microtask\", \"microtask\"));\n  });\n\n  queueMicrotask(() => log(\"queueMicrotask\", \"microtask\"));\n\n  (async () => {\n    log(\"async function: code before the first await\", \"sync\");\n    await null;\n    log(\"async function: code after await\", \"microtask\");\n  })();\n\n  requestAnimationFrame(() => log(\"requestAnimationFrame (before the next paint)\", \"render\"));\n\n  log(\"script end\", \"sync\");\n}\n\ndocument.getElementById(\"run\").onclick = runOrderDemo;\n\ndocument.getElementById(\"block\").onclick = () => {\n  list.innerHTML = \"\";\n  const scheduledAt = performance.now();\n  setTimeout(() => log(`setTimeout(…, 0) ran after ${Math.round(performance.now() - scheduledAt)} ms`, \"macrotask\"), 0);\n  const end = performance.now() + 500;\n  while (performance.now() < end) {\n    // busy loop: no clicks, no painting, no timers until it finishes\n  }\n  log(\"500 ms of synchronous work finished\", \"sync\");\n};\n\nrunOrderDemo();","active":true},"/styles.css":{"code":"body { font-family: system-ui, sans-serif; margin: 0; padding: 12px; color: #1f2328; }\n.bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }\nbutton { padding: 6px 12px; cursor: pointer; }\nol { padding-left: 24px; margin: 0; }\nli { padding: 3px 0; }\n.tag { display: inline-block; min-width: 76px; font: 12px ui-monospace, monospace; padding: 1px 6px; border-radius: 4px; margin-right: 6px; text-align: center; }\n.sync { background: #e7f5ff; }\n.microtask { background: #d3f9d8; }\n.macrotask { background: #fff3bf; }\n.render { background: #f3d9fa; }"}},"layout":"console","height":460,"title":"Mikrozadania vs makrozadania w przeglądarce","caption":"Kolejność: kod synchroniczny, Promise i queueMicrotask, MessageChannel i setTimeout, requestAnimationFrame; blokada wątku na 500 ms opóźnia timer","editable":true}},{"type":"paragraph","content":[{"type":"text","text":"Mikrozadania zawsze wykonują się przed kolejnym makrozadaniem – także te dodane przez inne mikrozadanie. Kolejność makrozadań między sobą ("},{"type":"text","text":"MessageChannel","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"setTimeout","marks":[{"type":"code"}]},{"type":"text","text":") i względem "},{"type":"text","text":"requestAnimationFrame","marks":[{"type":"code"}]},{"type":"text","text":" zależy już od przeglądarki. Teraz to samo w Node, z dwiema kolejkami, których przeglądarka nie ma: "},{"type":"text","text":"process.nextTick","marks":[{"type":"code"}]},{"type":"text","text":" i "},{"type":"text","text":"setImmediate","marks":[{"type":"code"}]},{"type":"text","text":"."}]},{"type":"codeGroup","attrs":{"title":"Kolejność callbacków w ESM i CommonJS"},"content":[{"type":"codeBlock","attrs":{"language":"typescript","filename":"src/01-order.ts"},"content":[{"type":"text","text":"import { readFile } from \"node:fs\";\n\n// Run: node src/01-order.ts   (and compare with the CommonJS variant 01-order.cjs)\nconst log = (msg: string) => console.log(msg);\n\nlog(\"1  sync: start\");\nsetTimeout(() => log(\"   timers: setTimeout 0\"), 0);\nsetImmediate(() => log(\"   check: setImmediate\"));\nPromise.resolve().then(() => log(\"   microtask: promise.then\"));\nqueueMicrotask(() => log(\"   microtask: queueMicrotask\"));\nprocess.nextTick(() => log(\"   nextTick: process.nextTick\"));\nlog(\"2  sync: end of script\");\n\n// Inside an I/O callback (poll phase) the order is deterministic:\n// the check phase (setImmediate) comes right after poll, timers only in the next loop turn.\nreadFile(import.meta.filename, () => {\n  setTimeout(() => log(\"   [I/O] timers: setTimeout 0\"), 0);\n  setImmediate(() => log(\"   [I/O] check: setImmediate\"));\n  process.nextTick(() => log(\"   [I/O] nextTick\"));\n});"}]},{"type":"codeBlock","attrs":{"language":"javascript","filename":"src/01-order.cjs"},"content":[{"type":"text","text":"// The same queues in a CommonJS module: run with `node src/01-order.cjs`.\nconst log = (msg) => console.log(msg);\nlog(\"1  sync: start\");\nsetTimeout(() => log(\"   timers: setTimeout 0\"), 0);\nsetImmediate(() => log(\"   check: setImmediate\"));\nPromise.resolve().then(() => log(\"   microtask: promise.then\"));\nqueueMicrotask(() => log(\"   microtask: queueMicrotask\"));\nprocess.nextTick(() => log(\"   nextTick: process.nextTick\"));\nlog(\"2  sync: end of script\");"}]}]},{"type":"output","attrs":{"title":"node src/01-order.ts, a potem node src/01-order.cjs","language":"bash","content":"$ node src/01-order.ts\n1  sync: start\n2  sync: end of script\n   microtask: promise.then\n   microtask: queueMicrotask\n   nextTick: process.nextTick\n   check: setImmediate\n   timers: setTimeout 0\n   [I/O] nextTick\n   [I/O] check: setImmediate\n   [I/O] timers: setTimeout 0\n\n$ node src/01-order.cjs\n1  sync: start\n2  sync: end of script\n   nextTick: process.nextTick\n   microtask: promise.then\n   microtask: queueMicrotask\n   check: setImmediate\n   timers: setTimeout 0"}},{"type":"paragraph","content":[{"type":"text","text":"Trzy obserwacje, o które często pytają na rozmowach:"}]},{"type":"orderedList","attrs":{"start":1},"content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"W CommonJS ","marks":[{"type":"bold"}]},{"type":"text","text":"nextTick","marks":[{"type":"code"}]},{"type":"text","text":" wyprzedza Promise, w ESM – odwrotnie.","marks":[{"type":"bold"}]},{"type":"text","text":" Moduł ES jest wykonywany asynchronicznie, wewnątrz zadania, które samo jest obsługiwane jako mikrozadanie. Kolejka mikrozadań jest więc opróżniana jeszcze przed kolejką "},{"type":"text","text":"nextTick","marks":[{"type":"code"}]},{"type":"text","text":". Nie projektuj kodu, który zależy od tej kolejności."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"setTimeout(0)","marks":[{"type":"code"}]},{"type":"text","text":" kontra ","marks":[{"type":"bold"}]},{"type":"text","text":"setImmediate","marks":[{"type":"code"}]},{"type":"text","text":" w głównym module jest niedeterministyczne.","marks":[{"type":"bold"}]},{"type":"text","text":" W pięciu uruchomieniach ESM cztery razy wygrał "},{"type":"text","text":"setImmediate","marks":[{"type":"code"}]},{"type":"text","text":", raz "},{"type":"text","text":"setTimeout","marks":[{"type":"code"}]},{"type":"text","text":". Zależy to od tego, ile czasu minęło do pierwszego obrotu pętli."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"W callbacku I/O kolejność jest pewna","marks":[{"type":"bold"}]},{"type":"text","text":": po fazie poll przychodzi check ("},{"type":"text","text":"setImmediate","marks":[{"type":"code"}]},{"type":"text","text":"), a timery dopiero w następnej iteracji."}]}]}]},{"type":"callout","attrs":{"variant":"warning","title":"Typowy błąd: rekurencyjne process.nextTick"},"content":[{"type":"paragraph","content":[{"type":"text","text":"Funkcja, która w "},{"type":"text","text":"nextTick","marks":[{"type":"code"}]},{"type":"text","text":" (albo w "},{"type":"text","text":"then","marks":[{"type":"code"}]},{"type":"text","text":") planuje samą siebie, nigdy nie oddaje sterowania pętli: kolejka nie pustoszeje, więc I/O, timery i żądania HTTP czekają w nieskończoność. Do „oddania oddechu” pętli przy długiej pracy w kawałkach używaj "},{"type":"text","text":"setImmediate","marks":[{"type":"code"}]},{"type":"text","text":"."}]}]}]},"toc":[{"id":"z-czego-sklada-sie-node-js","text":"Z czego składa się Node.js","level":2,"locked":false},{"id":"fazy-petli-zdarzen","text":"Fazy pętli zdarzeń","level":2,"locked":false},{"id":"krok-1-projekt","text":"Krok 1. Projekt","level":2,"locked":false},{"id":"krok-2-kolejnosc-wykonania-nexttick-promise-settimeout-setimmediate","text":"Krok 2. Kolejność wykonania: nextTick, Promise, setTimeout, setImmediate","level":2,"locked":false},{"id":"krok-3-blokowanie-petli-i-worker-threads","text":"Krok 3. Blokowanie pętli i worker threads","level":2,"locked":true},{"id":"krok-4-strumienie-i-backpressure","text":"Krok 4. Strumienie i backpressure","level":2,"locked":true},{"id":"krok-5-wycieki-pamieci-i-profilowanie","text":"Krok 5. Wycieki pamięci i profilowanie","level":2,"locked":true},{"id":"typowe-bledy","text":"Typowe błędy","level":2,"locked":true},{"id":"sprawdz-sie","text":"Sprawdź się","level":2,"locked":true},{"id":"co-dalej","text":"Co dalej","level":2,"locked":true}],"locked":true,"paywall":null,"previewRatio":0.3,"totalBlocks":64,"visibleBlocks":23,"resources":[{"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":"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":"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":"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":"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":"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"}],"challenges":[],"attachments":[],"hasCode":true,"repoUrl":null,"series":[],"prev":null,"next":null,"featured":false,"authorCard":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","headline":"Wzorce projektowe · Architektura · AI i LLM","community":false,"reputation":{"points":3900,"level":{"key":"mentor","label":"Mentor"}},"articles":104,"skills":[{"key":"typescript","title":"TypeScript","level":5,"levelLabel":"Autorytet","articles":90},{"key":"dotnet","title":".NET","level":5,"levelLabel":"Autorytet","articles":61},{"key":"python","title":"Python","level":5,"levelLabel":"Autorytet","articles":59},{"key":"java","title":"Java","level":5,"levelLabel":"Autorytet","articles":46}]}}