Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^5: is Plack really necessary?

by Your Mother (Archbishop)
on Apr 27, 2018 at 16:23 UTC ( #1213690=note: print w/replies, xml ) Need Help??

in reply to Re^4: is Plack really necessary?
in thread is Plack really necessary?

Define need. You give up a large, growing, highly configurable, and easily extended amount of utilities by forsaking Plack and while I have never used hypnotoad except in playing around with mojo development it's difficult to imagine it's better than uWSGI in terms of stability and performance; judging by the docs, Mojo::Server::Hypnotoad, hypnotoad, it isn't even on the same planet for features. I looked around a little and couldn't find any performance or reliability metrics. As always, it's up to you and hypnotoad might be perfectly fine for what you want to do.

Update, obligatory overkill example: Re: Serving multiple Plack apps, Catalyst, Mojolicious, PHP, and CGI all served by a single server using Plack tools.

Replies are listed 'Best First'.
Re^6: is Plack really necessary?
by Anonymous Monk on Apr 28, 2018 at 09:28 UTC
    So with Starman involved, is this the correct diagram? Nginx <--> HTTP <--> Starman <--> Plackup/PSGI <--> Dancer <--> Code

      Yep. It's the layer called the application server. The main reason for this layer, as opposed to CGI which has no app server, is that the application is persistent as opposed to execute on demand. With a dynamic language like Perl, the benefits of persistence are enormous. Reduced a little–

      AppCode <-> AppServer <-> WebServer
        when setting up nginx as a reverse proxy with Starman at the backend is the upstream directive required ?
        this example does not use upstream

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1213690]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2022-05-16 08:38 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (62 votes). Check out past polls.