我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Php为每个请求非阻塞地获取json api,而api服务器在5秒后返回?

I want to fetch JSON from a remote server API, but the data returns minimum after 5 seconds. While waiting for that, if I get another user request can PHP also send/ fetch the second request to remote server. (I don't want to wait until the first data fetching is done)

Note, that the remote server can handle multiple requests at a time. The only problem we are facing is that the process takes minimum 5 seconds.

近期文章

  • Mautic无法保存UTM标签
  • PHP array_unshift在函数内不起作用
  • 渲染后的Twig输出是html + twig代码
  • 人口最多的文章
  • 单击按钮时更改谷歌图表数据
  • 如果在带有字符串编号的Twig中的语句
  • 在prestashop上导入类别和产品
  • 搜索多个类别的产品
  • 如何在我自己的本地PHP服务器上导致拒绝服务?
  • XAMPP Filezilla启动(操作)按钮被禁用
  • Laravel:通过两个数据透视表的多态关系
  • 如何从网页获取外部域/来源列表
  • 根据PHP MySQL表中的值选择JavaScript值
  • 如何更改表单以便仅发布选定的字段
  • Xampp中的PHP 5.6中的多线程
  • 在php文件目录中查找函数中的参数实例
  • 有没有办法在具有相似名称的多个输入上设置验证? Laravel 5.6
  • Symfony 3.4使用parameters.yml中的变量覆盖env变量
  • 如何在我的后端Wordpress自定义类型页面上显示已检查的版本,但在数据库中我想看到变量名称
  • 在php中创建tv_grab_en_telerama签名

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华