pnairn
pnairn

Reputation: 2017

What is the max number of "concurrent" requests supported by PHP Guzzle?

PHP Guzzle allows you to make concurrent requests, but you have to specify the "concurrency" number as a parameter.

For example:

$client = new Client();
$pool = new Pool($client, $generator($url, $data), [
  'concurrency' => 5,//this lets you set how many concurrent requests can be made
  'fulfilled' => function($response, $id) {

What is the maximum number of concurrent requests supported?

Upvotes: 2

Views: 1372

Answers (1)

Mikhail Prosalov
Mikhail Prosalov

Reputation: 4345

There are no limitations to this value. By default, it would be 25.

Upvotes: 3

Related Questions