-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Feature] Use almost any PHP fw or app with Workerman #824
Comments
It looks amazing. |
Laravel and Symfony login working !!! |
That great ! 👍 |
Grabacion_microsoft-edge-dev_20221023164232.mp4 |
Now I'll create a docker with the symfony-demo. |
Symfony initialization 0ms. And half time per request, once loaded the first time. Grabacion_microsoft-edge-dev_20221023164700.mp4 |
Working with CakePHP too |
The first results from the bench Laravel 8
In 2 days Symfony. |
Very good. It seems that the performance improvement is significant. 👍 |
Yes, it's very significant. The next week, we will see the Slim with raw db and optimized db for workerman. |
I don't know any PHP ORM optimised for persistent apps. |
Symfony 6Latency
|
With CakePHP we have worst results with Workerman. :( |
I think that I found the problem, It's related to Cakephp. Looking the cakephp bootstrap, it check if is CLI SAPI, and load a cli bootstrap. |
Laravel 9 have the same numbers than version 8. Lumen 9
Very similar numbers to Laravel. |
Trying now with Codeigniter4 |
Performance infoSlim3 vs Slim4 without ORM
👍 Slim with WorkermanWithout ORM
|
CakePHP still slower. |
In the mean time, you or me can add |
Done |
Walkor, open a twitter for Workerman (and Webman). |
Hi joanhey, here are the twitter accounts. https://twitter.com/workermanphp |
Workerman without worker mode, including the .php file in each request, from the plain php benchmark. Using your function exec_php_file($file)
{
ob_start();
// Try to include php file.
try {
include $file;
} catch (\Exception $e) {
echo $e;
}
return ob_get_clean();
} I need to change the catch Exception to catch Throwable. |
Great solution |
Looks like an interesting solution and I'm very interested in trying it out. |
Shared Nothing mode, like with PHP-FPM.
|
We need to add the protocol to Workerman v4.2 and/or 5 So we can work together with the new session, add more adapters and functionalities. The problem is: the name of the protocol ? |
The new session still use a random GC, that affect the performance of n requests. https://www.getpagespeed.com/server-setup/php/cleanup-php-sessions-like-a-pro ` |
which protocol? |
The new Http protocol from v4, it's using Request and Response classes. |
I have a very serious problem with the token of larravel in use. My logins in other places are consistent, which means that the token will not change, and my authentication session authentication will not be secure |
After using the worker man acceleration task larravel project, I can directly log in to other computers after logging in to one computer, such as the session global sharing. What should I do |
@493226876 please use the adapterman issues |
Workerman removed the super global variables filling since 4.0 because the super global variables cannot be used in asynchronous environment and co scheduling environment. It is easy to fill in super global variables in version 4.0 which codes like below.
Workerman should not have two similar http protocols, which will confuse developers. |
How to use it? I log in to sesssionID on different computers all the time |
The sesssionID printed by my browser refreshed in different environments frequently appears the same as that of other networks |
@493226876 Please use the issues in Adapterman Precisely the problem is that Laravel is the only fw, that don't use the $_SESSION. |
OK, thank you for telling me. I always thought that it was a problem where I set up the session. The session has always been repeated. It was originally a mechanism problem. If you have any trouble, please let me know. Thank you
Message ID: ***@***.***>
|
OK, thank you for telling me. I always thought that it was a problem where I set up the session. The session has always been repeated. It was originally a mechanism problem. If you have any trouble, please let me know. Thank you |
Please use the isssues in Adapterman. |
Ok, I will follow your latest news, look forward to the new release, and worship the boss! |
This is powerful, simple and easy to use |
@joanhey Hello, is the Shared Nothing mode available |
No, and still not working like Shared Nothing for now. |
Release v0.6 Still we need a Laravel dev, to help with close the session when finish each request. (Laravel don't use $_SESSION) |
Boss, do you mean that Laraver still hasn't solved the problem of closing the session every time a request is made
寻找¤真爱
***@***.***
…------------------ 原始邮件 ------------------
发件人: "walkor/workerman" ***@***.***>;
发送时间: 2023年3月13日(星期一) 晚上11:24
***@***.***>;
***@***.******@***.***>;
主题: Re: [walkor/workerman] [Feature] Use almost any PHP fw or app with Workerman (Issue #824)
Release v0.6
Use Workerman v4.1.x and recipe for ThinkPHP.
Still we need a Laravel dev, to help with close the session when finish each request. (Laravel don't use $_SESSION)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@493226876 There is a And the most important thing, YOU SHOULD USE ADAPTERMAN ISSUES to ask/discuss this.
@joanhey , I just commented on this several days ago (joanhey/AdapterMan#5 (comment)), actually laravel do have a way to clean up after each request, with the help of Laravel Octane. |
@joanhey Is it working with Codeigniter 4? |
Added a PR to php-src #16145 With this change Adapterman (and other frameworks) will work without to disable the functions in the .ini, and later rewrite them in php. |
Hi Walkor,
I was using a lib internally for more than 2 years, for my legacy apps to run with Workerman v3.5.
https://github.com/joanhey/AdapterMan
This week I tested with frameworks, and It's working perfectly, without touch 1 line of code in the fw or app.
We only need an small change to the Front Controller and PHP 8 as minimum.
Tested with:
Now I'm creating PRs in the Techempower benchmark.
TechEmpower/FrameworkBenchmarks#7627
TechEmpower/FrameworkBenchmarks#7626
Later I will push Slim and more fws.
I think that this lib will be useful for more people.
If time permits, I'll try to add documentation and upgrade to Workerman v4
The text was updated successfully, but these errors were encountered: