如何在没有页面刷新的Laravel中从数据库中获取实时数据
我必须从数据库中读取数据,必须找到所有状态的记录,此后我必须致电 api才能生成报告,同时我必须致电另一个 API,该API将下载报告的报告在上次API呼叫中生成的记录。所有这些都需要在后台运行,同步。
请向我建议处理这种情况的最佳方法,因为用于生成报告的API需要忽略的时间,但是由于报告中包含的大量数据,用于报告下载的API需要时间。
注意: - 数据将在GB。中
I have to read data from the database and I have to find all the records whose status is Completed, and after then I have to call an API to generate a report and at the same time, I have to call another API which will download the report for the records whose report get generated in the last API call. All this need to be run in the background asynchronously.
Please suggest to me the best approach to handle this situation because API for generating a report takes negligible time but API for report downloading takes time because of the large data contained in the report.
Note:- Data will be in GB.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论