Bref + Workerman/Webman or how to run the php start.php start command #1108
Replies: 3 comments 1 reply
-
Hello, unfortunately I have not had feedback on. Should I use Flight PHP or Opencart same as the Framework, so I can easily run the same code on AWS Lambda and Cloud. Now it would be interesting to have native support for Workerman/Webman by Bref and greater focus also on some microframework, such as Flight PHP itself, which has a very good performance and low consumption of resources. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the reply. Yes, they are more niche, but I think it would be interesting for Bref and even for Cloud use also direct, I consider Laravel a little bloated even more for Serverless, so I think of Flight PHP or Webman. Webman uses a simple command in the terminal, they don't really use PHP FPM, it is already the direct server similar to Swoole but without the dependency of installing by PHP extension. That's right, the command needs to keep running until the function code finishes running. Thanks for the tips and ideas, for now I think I'll use Flight PHP anyway, because for my use it should serve very well by Serverless and Cloud and I already have the base structure made in it that I used in the Bref and Serverless studies. After launching the service, I return to inform you about my experience and the choices I made. |
Beta Was this translation helpful? Give feedback.
-
Hi. I think it can be achieved through docker image. |
Beta Was this translation helpful? Give feedback.
-
Hi, would you know any way to run Bref + Workerman/Webman or how to run the php start.php start -d command.
I'm looking at using Workerman https://github.com/walkor/Workerman and the Webman Framework based on it: https://github.com/walkor/webman to be used on Lambda AWS and also on Cloud.
Locally it's very easy to run them, just run:
php start.php start -d
, but I don't know how you would do it in the case of Bref + Lambda AWS, maybe some way to instantiate Lambda AWS to run the command together.The interesting thing about Workerman is that unlike Swoole it doesn't need to install as an extension but the simple use of composer, it seems a great way out to be used with Breb + Lambda AWS and also in direct Cloud.
Another excellent Framework to use with Lambda AWS is Flight PHP which is first rate, but Wokerman's advantage is its features similar to Swoole and with very good performance, having more options to use.
My idea is to keep a general base for both Cloud and Lambda AWS, so it has to have excellent performance in Serverless and also in Cloud.
Beta Was this translation helpful? Give feedback.
All reactions