Php Asynchronous Web Calls

I have a db with more than 5 million lines, and for each line I have to do an http message on the server with some parameters with a maximum speed of 500 connections. Each send request takes 12 seconds to process. since the old connections are completed, I have to make new ones and maintain a connection of ~ 500. Then I have to update the DB with the values ​​returned from these websites. How to make webcams as described above?

My application is in PHP. Can I use PHP or do I need to switch to something else for this.

+3
source share
2 answers

PHP, long-poll. , , " - ", , . , , , .

- , DrupalChat, APE (AJAX Push Engine). http://drupal.org/project/drupalchat
http://www.ape-project.org/

push tech: http://en.wikipedia.org/wiki/Push_technology http://en.wikipedia.org/wiki/Comet_%28programming%29

stackoverflow : "Long Polling" ?

, 12 . , ( , ). ?

, , ( PostGres, MySQL ). . http://en.wikipedia.org/wiki/Database_transaction

+2

PHP , , . python . , PHP (, python) system(), , PHP, - -.

[b] [/b] php cron-, php script cron-job PHP . ( , )

500- , script 40 . 40 500 /12

+1

Source: https://habr.com/ru/post/1788532/


All Articles