Looking for validation or other ideas.
I have a GP service that I'd like to throttle the total number of requests for every hour. My current solution simply writes to a text file registered on the AGS server site each time a request is made to it:
So any subsequent request of the GP service it will get these from the text file and run a simple check/validation (Count vs. minutes passed since last time it was executed). It's all very simple in design and execution but I'd like to know if possible concurrency / collision issues would make this a bad approach.
I could possibly migrate to a standard SQL Server table, but I'd prefer simplicity of the text file.
Any input is appreciated.
Solved! Go to Solution.
Update:
I implemented what is described in the original post for now and will just be aware of any concurrency problems associated with writing to the .txt file.
Update:
I implemented what is described in the original post for now and will just be aware of any concurrency problems associated with writing to the .txt file.