We earn commission when you buy through affiliate links.

This does not influence our reviews or recommendations.Learn more.

So if you are using Node.js to deliver an image, js, CSS, font, etc.

aws-lb

then give a thought and consider separating the duties.

Lets take a look at how I did this.

This assumes you haveNginxandNode.jsinstalled.

There is the five crucial block above, let me go through one-by-one.

fire up the site in/etc/nginx/sites-enabledby creating a symbolic

Restart the Nginx and have fun!

With the above configuration, I was able to improveresponse time significantly, and I hope you should too.