是“工人”的数量。在Laravel Octane中,等于可以同时处理的请求数量?
我是否正确理解Laravel Octane中的“工人”数量等于可以同时执行的请求数?
例如,如果有2名工人,其中2个忙于返回CSV出口 - 新请求将不会处理?
Do I understand correctly that the number of "workers" in Laravel Octane is equal to the number of requests that can be executed simultaneously?
For example, if there are 2 workers, and 2 of them are busy returning CSV exports - new requests will not be processed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,在Laravel Octane中,工人的数量直接负责您的应用程序可以同时处理的许多请求。为了证明这一点,我们可以添加以下途径:
如果您与2名工人一起旋转Laravel Octane实例,并两次击中此端点 - 第三个执行必须等到两个工人中的一名自由处理。
Yes, in Laravel Octane the number of workers is directly responsible for a number of requests that your app can handle simultaneously. To prove that, we can add the following route:
If you spin a Laravel Octane instance with 2 workers and hit this endpoint twice - the third execution will have to wait until one of two workers are free to process it.