{"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":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:06:25.996Z","updatedAt":"2026-11-27T17:22:48.591Z","requestedLang":"en","theme":{"hero":"classic","heroMedia":null,"accent":"green","background":"hex","weaveResources":true,"toc":"right"},"seoDescription":"The Node.js event loop step by step – libuv phases, microtasks and macrotasks, nextTick vs Promise in ESM and CommonJS, setImmediate vs setTimeout, monitorEventLoopDelay, stream pipeline and backpressure, worker_threads vs cluster, heap snapshots, --cpu-prof and common memory leaks.","wordCount":3539,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"\"Node.js is single-threaded\" is only half true. Your JavaScript runs on one thread, but underneath there is the libuv thread pool, the operating system's asynchronous I/O and the V8 garbage collector. Once you understand how these parts cooperate, you stop being surprised that a single "},{"type":"text","text":"JSON.parse","marks":[{"type":"code"}]},{"type":"text","text":" of a big file stalls every HTTP request, or that a CSV export eats 700 MB of memory. In this tutorial you will verify every claim with working code – the outputs in the \"Output\" blocks come from real runs on Node.js 24."}]},{"type":"callout","attrs":{"variant":"info","title":"In short"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"The event loop runs callbacks one by one, in phases","marks":[{"type":"bold"}]},{"type":"text","text":" (timers, poll, check…). After every callback Node drains the "},{"type":"text","text":"process.nextTick","marks":[{"type":"code"}]},{"type":"text","text":" queue and the microtask (Promise) queue. While your code is computing, nothing else happens."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Move CPU work off the main thread","marks":[{"type":"bold"}]},{"type":"text","text":" to worker threads (or a separate service or job queue), and process large data with streams via "},{"type":"text","text":"pipeline()","marks":[{"type":"code"}]},{"type":"text","text":", which takes care of backpressure."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Measure instead of guessing","marks":[{"type":"bold"}]},{"type":"text","text":": "},{"type":"text","text":"monitorEventLoopDelay","marks":[{"type":"code"}]},{"type":"text","text":" shows loop delay, "},{"type":"text","text":"--cpu-prof","marks":[{"type":"code"}]},{"type":"text","text":" shows where time goes, and comparing heap snapshots shows what holds memory."}]}]}]}]},{"type":"callout","attrs":{"variant":"tip","title":"What you will build"},"content":[{"type":"paragraph","content":[{"type":"text","text":"A set of seven short \"dumpling shop\" programs, each run with a single "},{"type":"text","text":"npm run …","marks":[{"type":"code"}]},{"type":"text","text":": callback order in ESM and CommonJS, a sales report computed on the main thread and in worker threads with loop-delay measurement, filtering 2 million orders from a CSV with a stream and \"all at once\", writing with and without backpressure, an HTTP cluster, and a memory leak simulation with a fix. Node 24 runs "},{"type":"text","text":".ts","marks":[{"type":"code"}]},{"type":"text","text":" files directly, so no build step is needed. You can download the code as a ZIP, and check the order of micro- and macrotasks in the browser in a live example."}]}]},{"type":"paragraph","content":[{"type":"text","text":"Prerequisites:","marks":[{"type":"bold"}]},{"type":"text","text":" Node.js 24 LTS or newer (26 LTS works too), a good grasp of "},{"type":"text","text":"async","marks":[{"type":"code"}]},{"type":"text","text":"/"},{"type":"text","text":"await","marks":[{"type":"code"}]},{"type":"text","text":" and Promises, TypeScript basics. The "},{"type":"text","text":"Express","marks":[{"type":"link","attrs":{"href":"/en/articles/express"}}]},{"type":"text","text":" or "},{"type":"text","text":"NestJS","marks":[{"type":"link","attrs":{"href":"/en/articles/nestjs"}}]},{"type":"text","text":" tutorial helps."}]},{"type":"stats","attrs":{"items":[{"value":"765 → 1.5 ms","label":"loop delay (p99)","hint":"report on the main thread vs in workers"},{"value":"402 → 99 MB","label":"peak RSS","hint":"`readFile` vs a stream for a 79 MB CSV"},{"value":"4","label":"libuv pool threads","hint":"by default (`UV_THREADPOOL_SIZE`)"},{"value":"6","label":"event loop phases","hint":"timers, pending, idle/prepare, poll, check, close"}]}},{"type":"heading","attrs":{"level":2,"id":"what-node-js-is-made-of"},"content":[{"type":"text","text":"What Node.js is made of"}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart TB\n  JS[\"Your JS/TS code<br/>Express, NestJS, scripts\"] --> V8[\"V8<br/>JIT compilation, heap, GC\"]\n  JS --> API[\"Node modules<br/>fs, net, http, crypto, zlib, stream\"]\n  API --> UV[\"libuv: event loop\"]\n  UV --> OS[\"OS asynchronous I/O<br/>epoll / kqueue / IOCP<br/>TCP sockets, HTTP\"]\n  UV --> TP[\"Thread pool (4 by default)<br/>fs, dns.lookup,<br/>crypto.pbkdf2/scrypt, zlib\"]\n  OS -->|\"ready event\"| UV\n  TP -->|\"result\"| UV\n  UV -->|\"callback\"| JS","caption":"JavaScript code, V8, libuv and the operating system"}},{"type":"paragraph","content":[{"type":"text","text":"Networking does not use the thread pool – the operating system handles sockets and libuv gets notified when data is ready. The pool (4 threads, "},{"type":"text","text":"UV_THREADPOOL_SIZE","marks":[{"type":"code"}]},{"type":"text","text":") handles operations without a good asynchronous OS API: most of "},{"type":"text","text":"fs","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"dns.lookup","marks":[{"type":"code"}]},{"type":"text","text":", asynchronous "},{"type":"text","text":"crypto","marks":[{"type":"code"}]},{"type":"text","text":" (e.g. "},{"type":"text","text":"scrypt","marks":[{"type":"code"}]},{"type":"text","text":") and "},{"type":"text","text":"zlib","marks":[{"type":"code"}]},{"type":"text","text":". If a server hashes dozens of passwords while reading files, those operations queue up for the same four threads."}]},{"type":"heading","attrs":{"level":2,"id":"the-event-loop-phases"},"content":[{"type":"text","text":"The event loop phases"}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart LR\n  T[\"timers<br/>setTimeout, setInterval\"] --> P[\"pending callbacks<br/>deferred I/O errors\"]\n  P --> I[\"idle, prepare<br/>internal\"]\n  I --> PO[\"poll<br/>new I/O events<br/>and their callbacks\"]\n  PO --> C[\"check<br/>setImmediate\"]\n  C --> CL[\"close callbacks<br/>socket.on('close')\"]\n  CL --> T\n  M[\"after EVERY callback:<br/>1. process.nextTick queue<br/>2. microtasks (Promise, queueMicrotask)\"] -.-> PO","caption":"One iteration of the libuv event loop; after every callback: nextTick, then microtasks"}},{"type":"paragraph","content":[{"type":"text","text":"In each phase the loop runs the callbacks queued for that phase. Since Node 11 the "},{"type":"text","text":"nextTick","marks":[{"type":"code"}]},{"type":"text","text":" and microtask queues are drained "},{"type":"text","text":"after every single callback","marks":[{"type":"bold"}]},{"type":"text","text":" (just like in browsers), not only after the whole phase. Let's check it in code."}]},{"type":"heading","attrs":{"level":2,"id":"step-1-the-project"},"content":[{"type":"text","text":"Step 1. The project"}]},{"type":"codeGroup","attrs":{"title":"package.json and 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":" makes sure you only use TypeScript syntax that Node can simply strip (no "},{"type":"text","text":"enum","marks":[{"type":"code"}]},{"type":"text","text":", no constructor parameter properties). That is why "},{"type":"text","text":"node src/file.ts","marks":[{"type":"code"}]},{"type":"text","text":" works without a build step, and "},{"type":"text","text":"tsc --noEmit","marks":[{"type":"code"}]},{"type":"text","text":" only checks types."}]},{"type":"heading","attrs":{"level":2,"id":"step-2-execution-order-nexttick-promise-settimeout-setimmediate"},"content":[{"type":"text","text":"Step 2. Execution order: nextTick, Promise, setTimeout, setImmediate"}]},{"type":"paragraph","content":[{"type":"text","text":"Start in the browser. The example prints the order of synchronous code, microtasks and macrotasks. The second button blocks the main thread for 500 ms – see when "},{"type":"text","text":"setTimeout(…, 0)","marks":[{"type":"code"}]},{"type":"text","text":" actually runs."}]},{"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":"Microtasks vs macrotasks in the browser","caption":"Order: synchronous code, Promise and queueMicrotask, MessageChannel and setTimeout, requestAnimationFrame; blocking the thread for 500 ms delays the timer","editable":true}},{"type":"paragraph","content":[{"type":"text","text":"Microtasks always run before the next macrotask – including those queued by another microtask. The order of macrotasks among themselves ("},{"type":"text","text":"MessageChannel","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"setTimeout","marks":[{"type":"code"}]},{"type":"text","text":") and relative to "},{"type":"text","text":"requestAnimationFrame","marks":[{"type":"code"}]},{"type":"text","text":" depends on the browser. Now the same in Node, with two queues the browser does not have: "},{"type":"text","text":"process.nextTick","marks":[{"type":"code"}]},{"type":"text","text":" and "},{"type":"text","text":"setImmediate","marks":[{"type":"code"}]},{"type":"text","text":"."}]},{"type":"codeGroup","attrs":{"title":"Callback order in ESM and 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, then 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":"Three observations interviewers like to ask about:"}]},{"type":"orderedList","attrs":{"start":1},"content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"In CommonJS ","marks":[{"type":"bold"}]},{"type":"text","text":"nextTick","marks":[{"type":"code"}]},{"type":"text","text":" beats Promise; in ESM it is the other way round.","marks":[{"type":"bold"}]},{"type":"text","text":" An ES module is evaluated asynchronously, inside a job that is itself handled as a microtask. So the microtask queue is drained before the "},{"type":"text","text":"nextTick","marks":[{"type":"code"}]},{"type":"text","text":" queue. Don't write code that depends on this order."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"setTimeout(0)","marks":[{"type":"code"}]},{"type":"text","text":" vs ","marks":[{"type":"bold"}]},{"type":"text","text":"setImmediate","marks":[{"type":"code"}]},{"type":"text","text":" in the main module is non-deterministic.","marks":[{"type":"bold"}]},{"type":"text","text":" In five ESM runs, "},{"type":"text","text":"setImmediate","marks":[{"type":"code"}]},{"type":"text","text":" won four times and "},{"type":"text","text":"setTimeout","marks":[{"type":"code"}]},{"type":"text","text":" once. It depends on how much time passed before the first loop iteration."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Inside an I/O callback the order is guaranteed","marks":[{"type":"bold"}]},{"type":"text","text":": after the poll phase comes check ("},{"type":"text","text":"setImmediate","marks":[{"type":"code"}]},{"type":"text","text":"), and timers wait for the next iteration."}]}]}]},{"type":"callout","attrs":{"variant":"warning","title":"Common mistake: recursive process.nextTick"},"content":[{"type":"paragraph","content":[{"type":"text","text":"A function that schedules itself in "},{"type":"text","text":"nextTick","marks":[{"type":"code"}]},{"type":"text","text":" (or in "},{"type":"text","text":"then","marks":[{"type":"code"}]},{"type":"text","text":") never yields to the loop: the queue never empties, so I/O, timers and HTTP requests wait forever. To let the loop \"breathe\" during long work done in chunks, use "},{"type":"text","text":"setImmediate","marks":[{"type":"code"}]},{"type":"text","text":"."}]}]},{"type":"heading","attrs":{"level":2,"id":"step-3-blocking-the-loop-and-worker-threads"},"content":[{"type":"text","text":"Step 3. Blocking the loop and worker threads"}]}]},"toc":[{"id":"what-node-js-is-made-of","text":"What Node.js is made of","level":2,"locked":false},{"id":"the-event-loop-phases","text":"The event loop phases","level":2,"locked":false},{"id":"step-1-the-project","text":"Step 1. The project","level":2,"locked":false},{"id":"step-2-execution-order-nexttick-promise-settimeout-setimmediate","text":"Step 2. Execution order: nextTick, Promise, setTimeout, setImmediate","level":2,"locked":false},{"id":"step-3-blocking-the-loop-and-worker-threads","text":"Step 3. Blocking the loop and worker threads","level":2,"locked":false},{"id":"step-4-streams-and-backpressure","text":"Step 4. Streams and backpressure","level":2,"locked":true},{"id":"step-5-memory-leaks-and-profiling","text":"Step 5. Memory leaks and profiling","level":2,"locked":true},{"id":"common-mistakes","text":"Common mistakes","level":2,"locked":true},{"id":"check-yourself","text":"Check yourself","level":2,"locked":true},{"id":"what-next","text":"What next","level":2,"locked":true}],"locked":true,"paywall":null,"previewRatio":0.3,"totalBlocks":64,"visibleBlocks":24,"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":"Authority","articles":90},{"key":"dotnet","title":".NET","level":5,"levelLabel":"Authority","articles":61},{"key":"python","title":"Python","level":5,"levelLabel":"Authority","articles":59},{"key":"java","title":"Java","level":5,"levelLabel":"Authority","articles":46}]}}