By adding worker threads to its Node.js servers, https://www.wix.com/ decreased its Kubernetes pod usage by ~70%, giving the website building service the stats to prove Node.js is indeed suited for CPU-intensive high-throughput work. Wix runs CPU-intensive JavaScript operations on Node.js’s single thread as part of its Server-Side-Rendering-Execution platform (SSRE).

But a single thread can only do so much as https://www.linkedin.com/in/guy-treger-5bba724/, Software Developer, explains in his recenthttps://www.wix.engineering/post/how-wix-applied-multi-threading-to-node-js-and-cut-thousands-of-ssr-pods-and-money.

Too many pods and a high volume of CPU-intensive tasks running on a single thread that was built into the architecture of how Wix ran.

Workers (threads) are useful for performing CPU-intensive JavaScript operations.

Related Articles