-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support a new concurrency mode #4330
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4330 +/- ##
=======================================
Coverage 50.69% 50.69%
=======================================
Files 72 72
Lines 14516 14517 +1
=======================================
+ Hits 7359 7360 +1
Misses 7157 7157
Continue to review full report at Codecov.
|
* Update version for Swoole 4.7.1 * Optimize code * Update package.xml * Added introducing a new concurrency mode (#4330) Co-authored-by: matyhtf <mikan.tenny@gmail.com> Co-authored-by: 沈唁 <52o@qq52o.cn> Co-authored-by: Bruce Dou <doubaokun@gmail.com>
Hi all. The Laravel team is open to implementing this but they need help with the PR. See this conversation: laravel/octane#765 Do you know anyone who could help? |
The configuration option In the pursuit of enabling coroutines within Octane, a practical starting point is to set Fully leveraging Swoole's capabilities within Laravel Octane, particularly for coroutine support and handling concurrent HTTP requests, is a complex undertaking. It would likely necessitate significant refactoring. The complexity of these changes also raises concerns about their integration and acceptance within the Octane framework. @binaryfire thanks for reaching us, and hope this helps. Please feel free to let me know if there are any questions. Thanks |
Thanks for your insights @deminy. The amount of refactoring needed across the whole framework to support concurrent HTTP requests would indeed be impractical. So as you said, the most practical approach would be to set The question is, do you think that change would result in a noticeable performance improvement for high traffic apps? |
For many apps, probably not that noticeable. High-performance apps depend on multiple aspects, not just the underline framework. |
max_concurrency = 1
, global variables and static variables are considered safe for the current requestLaravel Octane
to use coroutines at the request level to reduce the latency