WCF: limit number of calls per hour - per user
- by Eric Eijkelenboom
Hi guys,
I've got a WCF service (basicHttpBinding, basic authentication, IIS 6.0) on which I want to restrict the number of calls per hour - on user basis. For example, max 1000 calls per user, per hour (a la Google Maps, etc).
I also want to implement some sort of subscription mechanism, so that users can upgrade their call-limit across various 'price plans'.
I know that I could achieve this with a custom Inspector, backed by a DB containing some sort of 'subscription' table and a counter, but I'd like to avoid reinventing the wheel.
Does anyone have experience doing this? Are there 3rd party projects/libraries that support this out of the box?
Thanks. Eric