开发者

Coldfusion concurrent ajax post

开发者 https://www.devze.com 2023-01-21 12:06 出处:网络
I\'m creating a script for uploading and processing something. user upload an excel file in the destination script, the excel data are converted to a query

I'm creating a script for uploading and processing something.

  1. user upload an excel file
  2. in the destination script, the excel data are converted to a query
  3. the query converted to json using SerializeJSON
  4. and then this json data is submitted one by one using ajax and setInterval function

currently the interval for setInverval is set to 500 (milliseconds). so开发者_StackOverflow far is safe and doesn't kill the web server.

from Firebugs Console tab, with this interval I saw maximum 2 concurrent ajax request.

is there any limitation on maximum concurrent ajax request when using CF and IIS?

I'm using CF 9 standar edition with IIS in win 2008 server.

Thank you

(sorry, english is not my mother tounge :p)


Why not loop the Excel document and save the lines server side instead of submitting one by one with additional HTTP requests?

As for your question see what follows:

Maximum Number of Requests

  • The bottleneck is most likely the browser. Have a look at this question: How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?
  • I don't think IIS limits requests.
  • ColdFusion requests limits are set in the administrator under Server
    Settings > Request Tuning. By default 10 processing, up to 1000 more queued.
0

精彩评论

暂无评论...
验证码 换一张
取 消