If you're writing a Mojolicious app it's important to keep in mind that PSGI does not support async request dispatch features (including anything using Promises) or websockets, you must deploy using one of Mojolicious's built-in application servers (like Hypnotoad) for these features, which in many cases can be far more beneficial than other kinds of optimization.
Thanks, I was unware of PSGI not supporting thoseπ. Even though uWSGI support websockets and async there is no point using it then. In that case normal HTTP to hypnotoad will be better. Also Nginx would be a better choice than Apache in terms of performance.
I just saw the psgi-spec but not able to finding anything related to support of those, so not sure whether it is in scope or not.
There have been attempts to write PSGI extensions to support async but it is not widely used. The Twiggy server supports it but only for the AnyEvent loop which I would not recommend, and Mojolicious doesn't recognize this extension anyway.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you're writing a Mojolicious app it's important to keep in mind that PSGI does not support async request dispatch features (including anything using Promises) or websockets, you must deploy using one of Mojolicious's built-in application servers (like Hypnotoad) for these features, which in many cases can be far more beneficial than other kinds of optimization.
Thanks, I was unware of PSGI not supporting thoseπ. Even though uWSGI support websockets and async there is no point using it then. In that case normal HTTP to hypnotoad will be better. Also Nginx would be a better choice than Apache in terms of performance.
I just saw the psgi-spec but not able to finding anything related to support of those, so not sure whether it is in scope or not.
There have been attempts to write PSGI extensions to support async but it is not widely used. The Twiggy server supports it but only for the AnyEvent loop which I would not recommend, and Mojolicious doesn't recognize this extension anyway.