Throttle a Geoprocessing Service

279
1
Jump to solution
04-02-2019 12:12 PM
JamesCrandall
MVP Frequent Contributor

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:

  • Current Datetime
  • Running Count

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.

0 Kudos
1 Solution

Accepted Solutions
JamesCrandall
MVP Frequent Contributor

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.

View solution in original post

0 Kudos
1 Reply
JamesCrandall
MVP Frequent Contributor

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.

0 Kudos