Q131. How can you implement simple rate limiting for API routes?
For basic protection you can use an in-memory store (suitable for single-instance apps) or a shared store (Redis) for multiple instances. Example memory-based limiter usi...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (182 available).
For basic protection you can use an in-memory store (suitable for single-instance apps) or a shared store (Redis) for multiple instances. Example memory-based limiter usi...
The compiler is is responsible for compiling template strings into JavaScript render functions. For example, the below code snippet shows the difference of templates whic...
The properties of CSS 3D Transforms are: 1. transform-style: determines whether an element's children are transformed in 3D space 2. perspective: determines the distance ...
**REPEATABLE READ** (InnoDB engine). Prevents dirty reads and non-repeatable reads, but phantom reads are possible (though InnoDB uses MVCC + gap locking to mostly preven...
**Color contrast** measures the difference in perceived luminance between foreground text/elements and their underlying background. ### Web Content Accessibility Guidelin...
It is important because people with visual impairments or color blindness may have trouble seeing things if there is not enough contrast. There are guidelines for making ...
**Query optimization**. The database's query optimizer generates multiple execution plans and picks the cheapest one based on statistics, indexes, and cost models. You ca...
By creating a custom server or using API routes to implement middleware logic. ```js // pages/api/middleware.js export default function middleware(req, res, next) { // Cu...
To optimize responsive images for faster loading in CSS, you can use smaller file formats like JPEG and PNG, reduce the image size and resolution, and use lazy loading to...
**Middleware** in Next.js enables you to run code on incoming requests before they are completed, ideal for authentication, bot detection, A/B testing, and URL rewrites: ...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.