Where should rate limiting sit in an Express stack?
Simple meaning
Apply a limiter early, especially on login and signup, to slow brute force and abuse.
Open the full page for Why, Steps, Example and Key takeaway.
Panel-ready MERN Full Stack questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.
Apply a limiter early, especially on login and signup, to slow brute force and abuse.
Open the full page for Why, Steps, Example and Key takeaway.
An index is a data structure that lets MongoDB find documents without scanning the whole collection.
Open the full page for Why, Steps, Example and Key takeaway.
Aggregation is a sequence of stages such as match, group, lookup, and project that transform documents on the server.
Open the full page for Why, Steps, Example and Key takeaway.
populate replaces stored ObjectId references with the related documents in a follow-up query.
Open the full page for Why, Steps, Example and Key takeaway.
Embed data that is read together and stays bounded, such as an address on a user.
Open the full page for Why, Steps, Example and Key takeaway.
lean() returns plain JavaScript objects instead of full Mongoose documents.
Open the full page for Why, Steps, Example and Key takeaway.
Offset pagination uses skip and limit, which is simple but slow on large skips.
Open the full page for Why, Steps, Example and Key takeaway.
Only call hooks at the top level of a React function, never inside loops or conditions.
Open the full page for Why, Steps, Example and Key takeaway.
useMemo caches an expensive calculation between renders.
Open the full page for Why, Steps, Example and Key takeaway.
Context passes data through the tree without prop drilling, such as theme or the current user.
Open the full page for Why, Steps, Example and Key takeaway.
A controlled input takes its value from React state and updates through onChange.
Open the full page for Why, Steps, Example and Key takeaway.
React.memo skips re-rendering a component when its props are shallowly equal.
Open the full page for Why, Steps, Example and Key takeaway.
Trigger the request in useEffect or a data library such as React Query, handle loading and error states, and cancel or ignore stale responses.
Open the full page for Why, Steps, Example and Key takeaway.
Lift state when two nearby components share data.
Open the full page for Why, Steps, Example and Key takeaway.
A custom hook is a function starting with use that calls other hooks.
Open the full page for Why, Steps, Example and Key takeaway.
An access token is short-lived and sent on each API call.
Open the full page for Why, Steps, Example and Key takeaway.
SameSite=Lax or Strict stops the browser from sending cookies on most cross-site requests, which blocks classic CSRF.
Open the full page for Why, Steps, Example and Key takeaway.
A salt is random data mixed into the hash so two users with the same password get different hashes.
Open the full page for Why, Steps, Example and Key takeaway.
A middleware reads the cookie or Authorization header, verifies the JWT or session, and attaches req.user.
Open the full page for Why, Steps, Example and Key takeaway.
OAuth lets the user sign in with a provider such as Google without sharing their password with you.
Open the full page for Why, Steps, Example and Key takeaway.