<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Node.js - Tag - Sandesh Damkondwar</title><link>https://sandesh.work/tags/node.js/</link><description>Node.js - Tag - Sandesh Damkondwar</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>sandeshdamkondwar@gmail.com (Sandesh Damkondwar)</managingEditor><webMaster>sandeshdamkondwar@gmail.com (Sandesh Damkondwar)</webMaster><lastBuildDate>Wed, 19 Feb 2020 01:19:07 +0530</lastBuildDate><atom:link href="https://sandesh.work/tags/node.js/" rel="self" type="application/rss+xml"/><item><title>How to Use Middlewares in Node</title><link>https://sandesh.work/how-to-use-middlewares-in-node/</link><pubDate>Wed, 19 Feb 2020 01:19:07 +0530</pubDate><author>sandeshdamkondwar@gmail.com (Sandesh Damkondwar)</author><guid>https://sandesh.work/how-to-use-middlewares-in-node/</guid><description><![CDATA[<p>In this article, we would be seeing middlewares in NodeJS and how we would use them in our application.</p>
<h2 id="what-are-middlewares-in-nodejs"><strong>What are middlewares in Node.Js?</strong></h2>
<p>Middlewares are functions used in connecting a bunch of isolated systems to interact and perform certain tasks. For example, think of a switch as a component and bulb as another independent component where a wire acts as a middleware to connect these both and give us the required output (In this case, electricity to light the bulb).</p>]]></description></item><item><title>Generate a NodeJS Flamechart</title><link>https://sandesh.work/node-js-flamechart/</link><pubDate>Fri, 11 Jan 2019 00:30:48 +0530</pubDate><author>sandeshdamkondwar@gmail.com (Sandesh Damkondwar)</author><guid>https://sandesh.work/node-js-flamechart/</guid><description><![CDATA[<p>Here’s how you can generate a Node <a href="http://www.brendangregg.com/flamegraphs.html" target="_blank" rel="noopener noreffer ">flame graph</a>  with linux perf(1). Note that perf(1) needs to run as root, but the perf.map file node generates might be owned by a different user. If that’s the case, you’ll need to change its ownership to root as well — otherwise perf(1) will not be able to use it to translate JS stack frames.</p>
<pre><code>$ uname -a
</code></pre>
<p>Linux demo 3.2.0-74-virtual #109-Ubuntu SMP Tue Dec 9 17:04:48 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux</p>]]></description></item></channel></rss>