A
A
Andrey Rakovskiy2016-10-10 19:27:21
Asynchronous programming
Andrey Rakovskiy, 2016-10-10 19:27:21

What is the best JS for asynchronous POST/GET requests?

Hello, the task is to get a response from <2000 urls in a period of up to 10 minutes.
Urls will be divided into packs from 5 to 200 pieces.
The pages that need to be received on average weigh 3-5 kb, contain json, the response time is 2-3 seconds.
The content handler is written in PHP. I plan to use another AP to perform asynchronous requests, and use GEARMAN or something like that to send responses to PHP. (this is not the point)
Question: what is the best way to use for this PL, which will be less resource-intensive to perform such a number of asynchronous requests?
Ps Perhaps there are SaaS services for such a task?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Taratin, 2016-10-10
@Rakovskiy28

I plan to use another AP to perform asynchronous requests

But why??
https://github.com/chuyskywalker/rolling-curl

B
beduin01, 2016-10-10
@beduin01

vibed.org
Or just a lib to work with http

R
Rou1997, 2016-10-10
@Rou1997

Probably pure C.
I don’t know, but there are a lot of VPS / VDS services, maybe it’s more expensive than a service purely for requests, but it’s more universal, you can do something else there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question