I\'m worried about Yii2 Rate limiting api?
What is Rate limiting api, why this used?
Here are some methods from Yii2 Can a yii guru explain in simple words a
public function getRateLimit($request, $action) { $id = $action->getUniqueId(); $limits = [ 'user/login' => [20,10], 'article/index' => [100,10], ....... 'other' => [50,10] ]; if(!array_key_existe($id,$limits)) $id = 'other'; return $limits[$id]; }