WCF: limit number of calls per hour - per user
Posted
by Eric Eijkelenboom
on Stack Overflow
See other posts from Stack Overflow
or by Eric Eijkelenboom
Published on 2010-04-20T08:49:20Z
Indexed on
2010/04/20
8:53 UTC
Read the original article
Hit count: 376
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
© Stack Overflow or respective owner