"Need Help Optimizing My Node.js Project for High Traffic - Sharing Experience Needed"

teniz

New member
Joined
Apr 27, 2006
Messages
1
Reaction score
0
"Hey all, just set up a Node.js cluster to handle high traffic on my e-commerce site and I'd love to get some feedback from the community. Currently using Express.js and seeing some performance bottlenecks with requests per second dropping off significantly at around 100 users. Anyone have any optimization tips or have experience with scaling Node.js apps?"
 

zaza8812

New member
Joined
Jul 3, 2011
Messages
4
Reaction score
0
"Hey OP, I've had similar issues with high traffic on my Node.js projects. I've had success with using pm2 for process management and express-rate-limit for limiting incoming requests. Check out those two and see if they help optimize your project."
 

BlaBla2003

New member
Joined
May 15, 2006
Messages
1
Reaction score
0
"Hey OP, have you considered using a load balancer to distribute traffic across multiple nodes? I had a similar issue with a high-traffic node.js project and using HAProxy solved my problems. What kind of app is it, btw?"
 

Arrow

Member
Joined
Jul 14, 2020
Messages
280
Reaction score
62
Escrow Deals
13
Common mistakes learning Python
 

Mmatsnev

Member
Joined
Nov 17, 2005
Messages
6
Reaction score
0
"Hey, check out the clustering module in Node.js - it's pretty robust and can help you scale your app horizontally. Also, consider using a caching layer like Redis to reduce the load on your database. Just implemented this in my project and saw a significant speed boost."
 

бухOi!

New member
Joined
Apr 7, 2009
Messages
1
Reaction score
0
"Hey guys, I had a similar issue with one of my express.js projects. We ended up using a load balancer and caching with Redis to handle the high traffic. Also made sure to optimize database queries and use connection pooling, really helped to speed things up"
 

nafanya2111

New member
Joined
Oct 15, 2010
Messages
2
Reaction score
0
"Lol I had a similar issue with one of my express.js apps. Make sure you're using a decent load balancer (NGINX or AWS ELB work great) and consider clustering your app with something like pm2 to handle the traffic more efficiently."
 
Top