I have a table which contain 1lack records, so i need to send all the records to api with in 5 seconds and the api accept only 10 record per request. and no problem i can increase time range from 5 to 25seconds.
So how can i make concurrent 10 request?
Example
100k records
$records_array // accepting 10 records per connection.
function sendCamp($records_array){
connectionToServer();
for($i = 0; $i<recordslength; $i++){
callSMS($records_array[$i]);
}
}