Node.js · Senior · Question 61 of 75
How do you prevent one tenant or client from exhausting a shared Node.js API?
- 1Ignore it, Node.js balances tenants automatically
- ✓Correct answer: Rate limits and quotas per tenant, limits on payload and query size, and separate queues or pools for heavy work
- 3Give every tenant a separate Node.js process on one server
Explanation
This is the 'noisy neighbor' problem. Fair queuing and per-tenant concurrency limits keep latency stable for everyone.