开发者

Multiple AJAX calls - jQuery and RoR

I want to make multiple AJAX calls to my RoR a开发者_运维技巧pplication, the thing is that the first AJAX call is to an action which takes a long time to return a value, does the first call prevents from the other calls from being executed? My question is directed to the server side, if the server is still "working" on the first call, is he available to the other calls?

Any thoughts?


Depends on the browser: check out this question: How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?


That depends on the number of processes your server is able to run. For example, if you use Passenger, you can define a minimum and maximum number of processes via the --max-pool-size and --min-instances command line arguments.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜