HOW TO MAKE A NODE.JS APP QUICK?
By ADMIN| May 23, 2018
CATEGORY : BLOG | BLOG DYNAMIC | DEV
TAGS :
Node.JS is considered to be one of the most reliable and stable means of Java-script based open source Back-end web application framework and one of the world’s most popular programming language. Earlier loading any dashboard would require at least 30 seconds because it consistof HTML pages which itself takes a min of 10 secs, then the application would request several other JavaScript and CSS files, each with a response time averaging 5 seconds. Obviously, this was not acceptable so we some other steps were taken to make things faster.So, what could be the reason? Sometimes performance of node.js based systems is poor or even crashes because of few vulnerabilities and weak spots which affects the application performance. Problems increases more frequently when a Node.js based web application experiences rapid traffic fluctuations.In fact, Node.js is a great tool for creating and running application logic that produces the core, variable content for your web page. But it is not good for serving static content such as images and JavaScript files or load balancing across multiple servers. To avoid these kind of troubles and make the most usage of node.js, it is necessary to cache static content, to proxy and load balance among multiple application servers and to manage port contention between clients, Node.js, and helpers, such as servers running Socket.IO. NGINX is used as a great tool for Node.js performance tuning.This article presents some tips to speed up the Node-based web application development. So, let’s see each of them.
- Run in Parallel:
- Using Cache
- Enable GZIP
- Use Client Side Rendering When Possible
- Use nginx in Front of Node
- Reduce and Concatenate JavaScript