hard20 pts · first answer countsnodejsconcurrencyperformance
One slow route freezes Node.js
In a Node.js API, one endpoint resizes images using a synchronous pure-JavaScript loop that takes 2 seconds. During that time all other requests, even health checks, hang. Why, and what is the right fix?
Discussion 0
Join free to post in the discussion.
Related questions
- Promise and setTimeout orderBackend Developer
- Slow email during signupBackend Developer
- Duplicate emails despite a checkBackend Developer
- What EXPLAIN tells youBackend Developer
- Asking for only a few fieldsBackend Developer
- Building a long string in a loopBackend Developer
- Checking if any rows existBackend Developer
- Updating a counter in MongoDBBackend Developer