travis1097
travis1097

Reputation: 2949

Track API usage in ASP.NET MVC during development and/or production

My app makes requests to

http://www.brewerydb.com/api/breweries/?apikey=<key>&<parameters>

but I'm only given 100 requests per hour. I considered recording request instances in the app's database but during development I am often regenerating the database using code the Entity Framework 4.1 so that doesn't seem like it would work. Any ideas?

Upvotes: 0

Views: 104

Answers (1)

RPM1984
RPM1984

Reputation: 73112

Some kind of database would be best.

If your regenerating the DB as you say, then store it in a different DB, or if you simply want to store basic info (date/time of hit), then nothing wrong with using XML or even a CSV file on your web server.

Upvotes: 1

Related Questions