{"id":3459,"date":"2019-04-24T08:53:00","date_gmt":"2019-04-24T08:53:00","guid":{"rendered":"http:\/\/the-codest.localhost\/blog\/mom-he-blocked-threads-again\/"},"modified":"2026-04-24T11:21:40","modified_gmt":"2026-04-24T11:21:40","slug":"mom-er-hat-wieder-themen-blockiert","status":"publish","type":"post","link":"https:\/\/thecodest.co\/de\/blog\/mom-he-blocked-threads-again\/","title":{"rendered":"MOM! Er hat wieder Threads blockiert!"},"content":{"rendered":"<h2>F\u00e4den<\/h2>\n<p>Das Wichtigste ist: Es gibt zwei Arten von Threads in <strong><a href=\"https:\/\/thecodest.co\/de\/blog\/find-your-node-js-expert-for-hire-today\/\">Node.js<\/a><\/strong>: Haupt-Thread - dieser wird von <b>Ereignis-Schleife<\/b>und <b>Arbeitskr\u00e4fte-Pool<\/b> (Thread-Pool) - das ist der Pool von Threads -<br \/>\n<a href=\"http:\/\/docs.libuv.org\/en\/v1.x\/threadpool.html\" rel=\"nofollow\">Dank an libuv<\/a>. Jede von ihnen hat eine andere Aufgabe. Das Ziel der ersten ist es, nicht blockierende E\/A-Operationen zu verarbeiten, und die zweite ist f\u00fcr CPU-intensive Arbeit und auch blockierende E\/A zust\u00e4ndig.<\/p>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/libuv.png\" alt=\"Diagramm von libuv\" title=\"Bestandteile von libuv\" \/><\/p>\n<p>Aber was ist ein Thread und wie unterscheidet er sich von einem Prozess? Es gibt mehrere Unterschiede, aber der wichtigste ist <a href=\"https:\/\/thecodest.co\/de\/blog\/why-us-companies-are-opting-for-polish-developers\/\">us<\/a> ist, wie ihnen der Speicher zugewiesen wird. Sie k\u00f6nnen sich einen Prozess wie eine Anwendung vorstellen. Innerhalb jedes Prozesses gibt es einen Teil des Speichers, der nur f\u00fcr diesen Prozess bestimmt ist. Ein Prozess hat also keinen Zugriff auf den Speicher des anderen, und diese Eigenschaft gew\u00e4hrleistet eine hohe Sicherheit. Um die Kommunikation zwischen den Prozessen herzustellen, m\u00fcssen wir einige Arbeit leisten. Threads sind anders. Threads laufen innerhalb eines Prozesses und teilen sich denselben Speicher, so dass es \u00fcberhaupt kein Problem mit der gemeinsamen Nutzung von Threads gibt <a href=\"https:\/\/thecodest.co\/de\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">Daten<\/a>.<\/p>\n<p>Ein Punkt verursacht jedoch ein Problem. Es ist die so genannte Race Condition. Die Threads k\u00f6nnen gleichzeitig ablaufen, woher wissen wir also, welcher zuerst endet? Es kann passieren, dass beim ersten Mal die erste Operation zuerst beendet wird, und beim n\u00e4chsten Mal ist es vielleicht umgekehrt und die zweite Operation endet vor der ersten. Stellen Sie sich vor, Sie arbeiten mit Schreib-\/Leseoperationen unter solchen Bedingungen! Ein Albtraum! Es ist manchmal sehr schwer, korrekte <a href=\"https:\/\/thecodest.co\/de\/dictionary\/what-is-code-refactoring\/\">Code<\/a> in einer Multithreading-Umgebung.<\/p>\n<p>Au\u00dferdem haben die Multi-Thread-Sprachen einen gro\u00dfen Speicher-Overhead, weil sie f\u00fcr jede Anfrage einen eigenen Thread erstellen; wenn Sie also 1000 Anfragen aufrufen wollen, erstellen sie 1000 Threads.<\/p>\n<p>Wie geht man mit einem solchen Problem um? Verwenden Sie stattdessen einen einzigen Faden! Und das ist es, was <strong><a href=\"https:\/\/thecodest.co\/de\/dictionary\/what-is-node-js-used-for\/\">Knotenpunkt<\/a><\/strong> bietet Ihnen.<\/p>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/eventloop.png\" alt=\"Ein-Thread-Ereignisschleife\" title=\"Ereignisschleifen-Diagramm \" \/><\/p>\n<p>Als <strong><a href=\"https:\/\/thecodest.co\/de\/blog\/hire-javascript-developer\/\">JavaScript Entwickler<\/a><\/strong> Ich m\u00f6chte Sie ermutigen, sich die <a href=\"https:\/\/youtu.be\/PNa9OMajw9w\" rel=\"nofollow\">Film<\/a><br \/>\nin dem Bart Belder das Konzept der Ereignisschleife anschaulich erl\u00e4utert. Das obige Diagramm ist seiner Pr\u00e4sentation entnommen. Und wenn Sie diese Begriffe \u00fcberhaupt nicht kennen, k\u00f6nnen Sie beide <strong>Knotenpunkt<\/strong> und Libuv haben eine ausgezeichnete Dokumentation \ud83d\ude42<\/p>\n<h2>\u00dcber das Blockieren<\/h2>\n<p>Unter <strong><a href=\"https:\/\/thecodest.co\/de\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a> Entwicklung<\/strong> Industrie sagen sie das, weil <strong>Knotenpunkt<\/strong> single-threaded und non-blocking ist, k\u00f6nnen Sie mit denselben Ressourcen eine h\u00f6here Gleichzeitigkeit erreichen als mit multi-threaded L\u00f6sungen. Das ist wahr, aber es ist nicht so sch\u00f6n und einfach, wie es scheinen mag.<\/p>\n<p>Seit <strong>Node.js<\/strong> ist single-threaded (<a href=\"https:\/\/thecodest.co\/de\/blog\/hire-vue-js-developers\/\">JS<\/a> Teil), blockieren CPU-intensive Aufgaben alle laufenden Anfragen, bis die jeweilige Aufgabe abgeschlossen ist. Es ist also wahr, dass in <strong>Node.js<\/strong> k\u00f6nnen Sie jede Anfrage blockieren, nur weil eine von ihnen eine blockierende Anweisung enth\u00e4lt. Blockierender Code bedeutet, dass es l\u00e4nger als ein paar Millisekunden dauert, bis er fertig ist. Verwechseln Sie aber lange Antwortzeiten nicht mit Blockierung. Die Antwort der Datenbank kann sehr lange dauern, aber sie blockiert Ihren Prozess (die Anwendung) nicht.<\/p>\n<p>Blockierende Methoden werden synchron ausgef\u00fchrt, nicht blockierende Methoden werden asynchron ausgef\u00fchrt.<\/p>\n<p>Wie k\u00f6nnen Sie Ihre Ereignisschleife verlangsamen (oder blockieren)?<\/p>\n<ul>\n<li>anf\u00e4llige Regex - ein anf\u00e4lliger regul\u00e4rer Ausdruck ist derjenige, bei dem Ihre Engine f\u00fcr regul\u00e4re Ausdr\u00fccke exponentiell viel Zeit ben\u00f6tigt; Sie k\u00f6nnen mehr dar\u00fcber lesen  <a href=\"https:\/\/nodejs.org\/en\/docs\/guides\/dont-block-the-event-loop\/\" rel=\"nofollow\">hier<\/a>,<\/li>\n<li>JSON-Operationen f\u00fcr gro\u00dfe Objekte,<\/li>\n<li>unter Verwendung synchroner APIs von <strong>Knotenpunkt <\/strong>Kernmodule anstelle von asynchronen Versionen; alle E\/A-Methoden in der Node.js-Standardbibliothek bieten auch ihre asynchronen Versionen,<\/li>\n<li>andere Programmierfehler, wie synchrone Endlosschleifen.<\/li>\n<\/ul>\n<p>Ist es in diesem Fall, da der Worker Pool einen Pool von Threads verwendet, m\u00f6glich, auch diese zu blockieren? Leider ja \ud83d\ude41.<strong> Knotenpunkt<\/strong> basiert auf einer Philosophie <code>ein Thread f\u00fcr viele Kunden.<\/code> Nehmen wir an, dass eine bestimmte Aufgabe, die von einem bestimmten Worker ausgef\u00fchrt wird, sehr komplex ist und mehr Zeit f\u00fcr ihre Erledigung ben\u00f6tigt. Infolgedessen ist der Worker blockiert und kann nicht f\u00fcr die Ausf\u00fchrung anderer anstehender Aufgaben verwendet werden, bis seine Anweisungen ausgef\u00fchrt sind. Wie Sie wahrscheinlich schon erraten haben, kann dies die Leistung beeintr\u00e4chtigen. Sie k\u00f6nnen solche Probleme vermeiden, indem Sie die Schwankungen bei den Task-Zeiten durch die Verwendung von Task-Partitionierung minimieren.<\/p>\n<h2>Schlussfolgerung<\/h2>\n<p>Vermeiden Sie das Blockieren, das ist sicher. Wenn Sie nur k\u00f6nnen, w\u00e4hlen Sie immer asynchrone Versionen der Standardbibliotheks-APIs. Andernfalls kann der Client nach der Ausf\u00fchrung Ihrer Anwendung auf mehrere Probleme sto\u00dfen, angefangen beim verminderten Durchsatz bis hin zum vollst\u00e4ndigen R\u00fcckzug, was aus Sicht des Benutzers fatal ist.<\/p>\n<p><article-inline-code-review><\/article-inline-code-review><\/p>\n<p><b>Lesen Sie mehr:<\/b><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/why-you-should-probably-use-typescript\">Warum Sie (wahrscheinlich) Typescript verwenden sollten<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/how-not-to-kill-a-project-with-bad-coding-practices\/\">Wie kann man ein Projekt nicht durch schlechte Programmierpraktiken zerst\u00f6ren?<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/data-fetching-strategies-in-nextjs\/\">Strategien zum Abrufen von Daten in NextJS<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\"Don`t block the event loop...\" - diesen Satz haben Sie wahrscheinlich schon oft geh\u00f6rt... Das wundert mich nicht, denn er ist eine der wichtigsten Annahmen bei der Arbeit mit Node. Aber es gibt noch ein zweites \"Ding\", das Sie nicht blockieren sollten - den Worker Pool. Wenn er vernachl\u00e4ssigt wird, kann er erhebliche Auswirkungen auf die Leistung der Anwendung und sogar auf ihre Sicherheit haben.<\/p>","protected":false},"author":2,"featured_media":3460,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-3459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>MOM! He Blocked Threads Again! - The Codest<\/title>\n<meta name=\"description\" content=\"\u201cDon`t block the event loop\u2026\u201d \u2013 you&#039;ve probably heard this sentence many times\u2026 I&#039;m not surprised because it is one of the most important assumptions when working with Node. But there is also a second \u201cthing\u201d which you should refrain from blocking \u2013 the Worker Pool. If neglected, it can have a significant impact on application performance and even its security.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thecodest.co\/de\/blog\/mom-er-hat-wieder-themen-blockiert\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MOM! He Blocked Threads Again!\" \/>\n<meta property=\"og:description\" content=\"\u201cDon`t block the event loop\u2026\u201d \u2013 you&#039;ve probably heard this sentence many times\u2026 I&#039;m not surprised because it is one of the most important assumptions when working with Node. But there is also a second \u201cthing\u201d which you should refrain from blocking \u2013 the Worker Pool. If neglected, it can have a significant impact on application performance and even its security.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thecodest.co\/de\/blog\/mom-er-hat-wieder-themen-blockiert\/\" \/>\n<meta property=\"og:site_name\" content=\"The Codest\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-24T08:53:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-24T11:21:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"thecodest\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"thecodest\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/\"},\"author\":{\"name\":\"thecodest\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\"},\"headline\":\"MOM! He Blocked Threads Again!\",\"datePublished\":\"2019-04-24T08:53:00+00:00\",\"dateModified\":\"2026-04-24T11:21:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/\"},\"wordCount\":755,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg\",\"articleSection\":[\"Software Development\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/\",\"name\":\"MOM! He Blocked Threads Again! - The Codest\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg\",\"datePublished\":\"2019-04-24T08:53:00+00:00\",\"dateModified\":\"2026-04-24T11:21:40+00:00\",\"description\":\"\u201cDon`t block the event loop\u2026\u201d \u2013 you've probably heard this sentence many times\u2026 I'm not surprised because it is one of the most important assumptions when working with Node. But there is also a second \u201cthing\u201d which you should refrain from blocking \u2013 the Worker Pool. If neglected, it can have a significant impact on application performance and even its security.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#primaryimage\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg\",\"width\":960,\"height\":540},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thecodest.co\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MOM! He Blocked Threads Again!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"name\":\"The Codest\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thecodest.co\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"width\":144,\"height\":36,\"caption\":\"The Codest\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/pl.linkedin.com\\\/company\\\/codest\",\"https:\\\/\\\/clutch.co\\\/profile\\\/codest\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\",\"name\":\"thecodest\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"caption\":\"thecodest\"},\"url\":\"https:\\\/\\\/thecodest.co\\\/de\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"MOM! Er hat wieder Threads blockiert! - The Codest","description":"\"Don`t block the event loop...\" - diesen Satz haben Sie wahrscheinlich schon oft geh\u00f6rt... Das wundert mich nicht, denn er ist eine der wichtigsten Annahmen bei der Arbeit mit Node. Aber es gibt noch ein zweites \"Ding\", das Sie nicht blockieren sollten - den Worker Pool. Wenn er vernachl\u00e4ssigt wird, kann er erhebliche Auswirkungen auf die Leistung der Anwendung und sogar auf ihre Sicherheit haben.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thecodest.co\/de\/blog\/mom-er-hat-wieder-themen-blockiert\/","og_locale":"de_DE","og_type":"article","og_title":"MOM! He Blocked Threads Again!","og_description":"\u201cDon`t block the event loop\u2026\u201d \u2013 you've probably heard this sentence many times\u2026 I'm not surprised because it is one of the most important assumptions when working with Node. But there is also a second \u201cthing\u201d which you should refrain from blocking \u2013 the Worker Pool. If neglected, it can have a significant impact on application performance and even its security.","og_url":"https:\/\/thecodest.co\/de\/blog\/mom-er-hat-wieder-themen-blockiert\/","og_site_name":"The Codest","article_published_time":"2019-04-24T08:53:00+00:00","article_modified_time":"2026-04-24T11:21:40+00:00","og_image":[{"width":960,"height":540,"url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg","type":"image\/jpeg"}],"author":"thecodest","twitter_card":"summary_large_image","twitter_misc":{"Written by":"thecodest","Est. reading time":"4\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#article","isPartOf":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/"},"author":{"name":"thecodest","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76"},"headline":"MOM! He Blocked Threads Again!","datePublished":"2019-04-24T08:53:00+00:00","dateModified":"2026-04-24T11:21:40+00:00","mainEntityOfPage":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/"},"wordCount":755,"commentCount":0,"publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"image":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg","articleSection":["Software Development"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/","url":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/","name":"MOM! Er hat wieder Threads blockiert! - The Codest","isPartOf":{"@id":"https:\/\/thecodest.co\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#primaryimage"},"image":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg","datePublished":"2019-04-24T08:53:00+00:00","dateModified":"2026-04-24T11:21:40+00:00","description":"\"Don`t block the event loop...\" - diesen Satz haben Sie wahrscheinlich schon oft geh\u00f6rt... Das wundert mich nicht, denn er ist eine der wichtigsten Annahmen bei der Arbeit mit Node. Aber es gibt noch ein zweites \"Ding\", das Sie nicht blockieren sollten - den Worker Pool. Wenn er vernachl\u00e4ssigt wird, kann er erhebliche Auswirkungen auf die Leistung der Anwendung und sogar auf ihre Sicherheit haben.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#primaryimage","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg","width":960,"height":540},{"@type":"BreadcrumbList","@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thecodest.co\/"},{"@type":"ListItem","position":2,"name":"MOM! He Blocked Threads Again!"}]},{"@type":"WebSite","@id":"https:\/\/thecodest.co\/#website","url":"https:\/\/thecodest.co\/","name":"Der Codest","description":"","publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thecodest.co\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"Der Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","width":144,"height":36,"caption":"The Codest"},"image":{"@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/pl.linkedin.com\/company\/codest","https:\/\/clutch.co\/profile\/codest"]},{"@type":"Person","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76","name":"thecodest","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","caption":"thecodest"},"url":"https:\/\/thecodest.co\/de\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/posts\/3459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/comments?post=3459"}],"version-history":[{"count":5,"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/posts\/3459\/revisions"}],"predecessor-version":[{"id":7929,"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/posts\/3459\/revisions\/7929"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/media\/3460"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/media?parent=3459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/categories?post=3459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/de\/wp-json\/wp\/v2\/tags?post=3459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}