code hindi Information technologyCareer blogs Courses info Digital Marketing About

Rate limiting kya hai? Explained in simple Hindi

Rate limiting ek technique hai jo kisi system ya API par incoming requests ki maximum limit ko control karne ke liye use hoti hai. Iska basic purpose yeh hota hai ki ek specified time period ke dauran ek certain number se zyada requests allow na ki jaayein, taaki system overload na ho aur performance better rahe.

Key Points:
  • 1. Prevent Overload : Rate limiting server ya API ko overload hone se bachata hai, kyunki ek limit set kar di jaati hai ki ek user ya application ek time mein kitni requests kar sakti hai.
  • 2. Security : Yeh technique DDoS (Distributed Denial of Service) attacks ya brute force attacks ko rokne ke liye bhi use hoti hai, jisme ek user ya attacker bahut saari requests bhej kar system ko down karne ki koshish karta hai.
  • 3. Fair Usage : Rate limiting ensure karta hai ki sabhi users ko equal access milta rahe, aur koi user ya app resources ko excessively consume na kare.
  • 4. Common Limits : Rate limits ko second, minute, ya hourly basis par define kiya ja sakta hai. Jaise, "100 requests per minute" ya "1000 requests per hour."
Example:

Agar tumhara API 60 requests per minute allow karta hai, aur koi client 61st request bhejta hai, toh us request ko reject kar diya jaayega ya fir error message return hoga, jaise "429 Too Many Requests."

Server kya hota hai

Integrated Development Environment (IDE) kya hai