php - PHP Guzzle 支持的最大“并发”请求数是多少?
问题描述
PHP Guzzle 允许您发出并发请求,但您必须指定“并发”数作为参数。
例如:
$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) {
支持的最大并发请求数是多少?
解决方案
这个值没有限制。默认情况下,它将是25。
推荐阅读
- neo4j - Neo4j 计数查询
- python - Pytest 如何在包含 pytest.ini 的子文件夹中强制执行测试集合
- python - Airflow 变量的值在重新启动 docker 容器时变得无效
- json - 如何从python中的换行符分隔的JSON文件生成模式
- sql - 如何选择比插入列更多的列
- parceljs - 使用 Parcel bundler 加载 .png 文件不起作用
- mysql - 错误代码:2068 将 csv 文件加载到 MySql 中
- javascript - Vue中如何使用受控组件在父组件对象中设置值
- php - 如何在 laravel 中获取所有平均评分的数据
- python - python - 如何使用python中的bing maps api获取从源到目的地的多条路线?