Skip to content
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

Swoole implementation #2042

Open
joelkahan opened this issue Jul 26, 2021 · 3 comments
Open

Swoole implementation #2042

joelkahan opened this issue Jul 26, 2021 · 3 comments

Comments

@joelkahan
Copy link

It's would be great if we can implement swoole to increase speed api and better https request

Thank you for your service

@yurikuzn
Copy link
Contributor

yurikuzn commented Jul 26, 2021

It would be very difficult endeavor. There must be a lot of issues to be solved.

Does Swoole fully address the issue that PDO (and other APIs) is blocking in PHP?

We would need to rewise our architecture. I guess we would need to clone the DI container for each request (or each user) to have different dependencies specific to the current request (like current user entity, etc).

I don't think it's critical for API requests to be optimized as the nature of CRM apps is that usually there are no that much requests being processed at the same moment. But I believe it could be reasonable for the daemon (job processing).

@joelkahan
Copy link
Author

Yes swoole handle very well PDO

I suggest you to read this document
https://www.swoole.co.uk/docs/modules/pdo-connection-pool

@yurikuzn
Copy link
Contributor

Can be useful for implementation: https://www.swoole.co.uk/article/swoole-and-psr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants