Warning: mkdir(): No space left on device in /var/www/tg-me/post.php on line 37
Warning: file_put_contents(aCache/aDaily/post/djangolearn_ir/--): Failed to open stream: No such file or directory in /var/www/tg-me/post.php on line 50 جنگولرن | Telegram Webview: djangolearn_ir/1026 -
محدود کردن قبلِ از کار افتادن سیستم از لینکدین Shahab Bozorgi
ا Throttling یکی از روشهای مهم برای مدیریت درخواستها و جلوگیری از فشار بیش از حد روی سرورهاست تو این پست باهاش آشنا میشیم
تو جنگو میتونیم با استفاده از DRF خیلی راحت Throttling رو پیادهسازی کنیم این قابلیت بهمون کمک میکنه تعداد درخواست هایی که هر کاربر یا کل سیستم میتونه در یک بازه زمانی مشخص بفرسته رو کنترل کنیم
چجوری از Throttling تو DRF استفاده کنیم؟! ا DRF چند نوع Throttle پیشفرض داره: AnonRateThrottle → برای کاربران ناشناس UserRateThrottle → برای کاربران لاگین کرده ScopedRateThrottle → برای محدود کردن درخواستها در سطح API خاص کافیه این تنظیمات رو توی settings.py اضافه کنیم و مقدار دلخواهمون رو تنظیم کنیم با این روش از overload شدن سرور هم جلوگیری میکنیم.
محدود کردن قبلِ از کار افتادن سیستم از لینکدین Shahab Bozorgi
ا Throttling یکی از روشهای مهم برای مدیریت درخواستها و جلوگیری از فشار بیش از حد روی سرورهاست تو این پست باهاش آشنا میشیم
تو جنگو میتونیم با استفاده از DRF خیلی راحت Throttling رو پیادهسازی کنیم این قابلیت بهمون کمک میکنه تعداد درخواست هایی که هر کاربر یا کل سیستم میتونه در یک بازه زمانی مشخص بفرسته رو کنترل کنیم
چجوری از Throttling تو DRF استفاده کنیم؟! ا DRF چند نوع Throttle پیشفرض داره: AnonRateThrottle → برای کاربران ناشناس UserRateThrottle → برای کاربران لاگین کرده ScopedRateThrottle → برای محدود کردن درخواستها در سطح API خاص کافیه این تنظیمات رو توی settings.py اضافه کنیم و مقدار دلخواهمون رو تنظیم کنیم با این روش از overload شدن سرور هم جلوگیری میکنیم.
BY جنگولرن
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Telegram is an aspiring new messaging app that’s taking the world by storm. The app is free, fast, and claims to be one of the safest messengers around. It allows people to connect easily, without any boundaries.You can use channels on Telegram, which are similar to Facebook pages. If you’re wondering how to find channels on Telegram, you’re in the right place. Keep reading and you’ll find out how. Also, you’ll learn more about channels, creating channels yourself, and the difference between private and public Telegram channels.
However, analysts are positive on the stock now. “We have seen a huge downside movement in the stock due to the central electricity regulatory commission’s (CERC) order that seems to be negative from 2014-15 onwards but we cannot take a linear negative view on the stock and further downside movement on the stock is unlikely. Currently stock is underpriced. Investors can bet on it for a longer horizon," said Vivek Gupta, director research at CapitalVia Global Research.