2

I want to be able to say that if a request from the same user (for an API) starts to happen quickly enough that their requests per minute reaches a certain level, I want to start denying the requests until it slows down. (Just like the guys at Zendesk did).

The question is two fold, what's an efficient way of calculating the request rate (minimal DB read/writes) and where in the MVC hierarchy (Action filter, Controller method override?) would this code best reside?

4

1 に答える 1

0

2 つの言葉、リアクティブ フレームワーク。

イベントの調整と管理を行うためのあらゆる種類のキャンディーと甘い構文があり、頭の痛みがますます少なくなりますが、ダウンストリームで少しずつ戻ってきて、複雑さをなくすことは間違いありません。

于 2011-08-18T20:13:05.347 に答える