views:

25

answers:

0

We are planning to develop a web service using WCF. Is there a good way to limit the number of calls to the service in a period of time for a single IP? We don't want to put a hard limit (X number of times an hour), but we want to be able to prevent a spike from a single user.

Rather than trying to come up with our own custom solution and reinventing the wheel, is there an existing implementation or strategy that can be used? Will the different hosting environments in WCF make any difference?

Note: This question is related to this question. Comments were made about better extensibility in WCF, so I'm keeping these two questions separate.