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.
PHP, long-poll. , , " - ", , . , , , .
- , DrupalChat, APE (AJAX Push Engine). http://drupal.org/project/drupalchathttp://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
PHP , , . python . , PHP (, python) system(), , PHP, - -.
[b] [/b] php cron-, php script cron-job PHP . ( , )
500- , script 40 . 40 500 /12
Source: https://habr.com/ru/post/1788532/More articles:PHP IMagick RGB for CMYK inverts? - phpиспользуя строку в качестве выражений цикла и условия - javascriptIs the if-else tree the best way in the following case? - javaКак получить последние 3 различных идентификатора из таблицы mysql - javaLooking for a jquery plugin that gracefully degrades HTML5 audio text - jqueryhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1788533/how-to-add-a-class-to-a-hyperlink-when-it-contains-a-specific-file-extension&usg=ALkJrhhbRMGyPNvb5dOqR9kDcbqrlXEi3QWhat is the best way to manage a client database on GWT-based clients? - gwthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1788535/how-to-add-markers-to-arcgis-map-with-xy-coordinates&usg=ALkJrhguvf0VIAMKmmyM2BGUvEJnVFvv3QEliminating cross-connects in SQL - sqlSimple query ranking in django template - djangoAll Articles