My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

What are some tips to speed up Node.js server?

Aniketh Saha's photo
Aniketh Saha
·Nov 30, 2018

My node.js server is really becoming laggy or can say slow cause of huge db(mongodb) operations. I know there are some way to make it smooth and fast like clustering the server or server side caching.

It's there anything else including addition and tips for these two to make it faster. I would really appreciate the community guidelines in this. Also Would really help if its in node.js environment. And any better tips for server-side caching. Also is aggregates function for mongodb will help to make it fast or the default ones like collection.findById()?Thanks