<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Throttle a Geoprocessing Service in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/throttle-a-geoprocessing-service/m-p/821837#M421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking for validation or other ideas.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a GP service that I'd like to throttle the total number of requests for every hour.&amp;nbsp; My current solution simply writes to a text file registered on the AGS server site each time a request is made to it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Current Datetime&lt;/LI&gt;&lt;LI&gt;Running Count&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could possibly migrate to a standard SQL Server table, but I'd prefer simplicity of the text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Apr 2019 19:12:31 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2019-04-02T19:12:31Z</dc:date>
    <item>
      <title>Throttle a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/throttle-a-geoprocessing-service/m-p/821837#M421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking for validation or other ideas.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a GP service that I'd like to throttle the total number of requests for every hour.&amp;nbsp; My current solution simply writes to a text file registered on the AGS server site each time a request is made to it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Current Datetime&lt;/LI&gt;&lt;LI&gt;Running Count&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could possibly migrate to a standard SQL Server table, but I'd prefer simplicity of the text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 19:12:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/throttle-a-geoprocessing-service/m-p/821837#M421</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2019-04-02T19:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Throttle a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/throttle-a-geoprocessing-service/m-p/821838#M422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 14:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/throttle-a-geoprocessing-service/m-p/821838#M422</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2019-04-22T14:16:14Z</dc:date>
    </item>
  </channel>
</rss>

