Junior
From PDF
Node.js
Node.js
What is rate limiting and how do you implement it?
Short answer: Rate limiting prevents abuse by limiting the number of requests a user can make in a given time. π Use express-rate-limit: npm install express-rate-limit const rateLimit = require('express-rate-limit'); const limiter = rateLimit({ windowMs: 15 * 60 * 1000, max: 100 // limit per IP }); app.use(limiter);
Real-world example (ShopNest)
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Say this in the interview
- Define β one clear sentence (the short answer above).
- Example β relate it to a project like ShopNest or your real work.
- Trade-off β when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png