<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nodejs on downside154</title><link>https://downside154.github.io/series/nodejs/</link><description>Recent content in Nodejs on downside154</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 20 Oct 2023 17:53:54 +0900</lastBuildDate><atom:link href="https://downside154.github.io/series/nodejs/index.xml" rel="self" type="application/rss+xml"/><item><title>Node.Js Streams</title><link>https://downside154.github.io/posts/node_streams/</link><pubDate>Fri, 20 Oct 2023 17:53:54 +0900</pubDate><guid>https://downside154.github.io/posts/node_streams/</guid><description>&lt;h2 id="intro"&gt;Intro&lt;/h2&gt;
&lt;p&gt;Node.js has a built-in support for streams.
Streams are a fundamental concept in Node.js that enable efficient data handling, esp when dealing with large amounts of information OR working with data in real time.&lt;/p&gt;
&lt;p&gt;Summary:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Explore the concept of streams in Node.js&lt;/li&gt;
&lt;li&gt;Understand the different types of streams available (Readable, Writable, Duplex, and Transform)&lt;/li&gt;
&lt;li&gt;Discuss best practices for working with streams effectively.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="what-are-nodejs-streams"&gt;What are Node.js Streams?&lt;/h3&gt;
&lt;p&gt;Streams enable efficient data handling by reading or writing input/output sequentially. They are handy for file operations, network communications, and other forms of end-to-end data exchange.&lt;/p&gt;</description></item><item><title>Multi-threading with nodejs</title><link>https://downside154.github.io/posts/multi_thread_nodejs/</link><pubDate>Fri, 20 Oct 2023 16:49:20 +0900</pubDate><guid>https://downside154.github.io/posts/multi_thread_nodejs/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;What is Multithreading&lt;/li&gt;
&lt;li&gt;How does Node.js handle asynchronous operations.&lt;/li&gt;
&lt;li&gt;How to use Node&amp;rsquo;s &lt;code&gt;worker-threads&lt;/code&gt; module to create and manage threads.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="history"&gt;History&lt;/h3&gt;
&lt;p&gt;Computers are becoming more powerful thanks to GPUs and multi-cre CPUs, and modern applications leverage &lt;strong&gt;threads(independent execution units in a process)&lt;/strong&gt; to maximize application performance&lt;/p&gt;
&lt;p&gt;However, &lt;strong&gt;JavaScript is a synchronous, blocking, single-threaded language&lt;/strong&gt;. It was initially created to run on browsers, allowing for much of modern web page interactions, form validations, animations, and so on. Running operations on a single thread can block the synchronous execution flow and result in bottlenecks.&lt;/p&gt;</description></item></channel></rss>