in reply to Mojolicious::Lite: Should i use the build-in web server?

I've had a great experience using hypnotoad and nginx for serving up our Mojolicious apps here at work. It would be hard to tell you if ~your~ application is going to run like you want/expect as we have no idea of what your application does....clearly some things take more resources to do than others.

My most recent project is based on a software stack that includes: postgres, postgis, mapserver, openlayers...with a mojolicious perl backend served up with nginx/hypnotoad. It runs fantastic with a heavy user load.

I'll i can tell you is that your likely going to have to give it a try and see if it meets your expectations.

-Pizentios
  • Comment on Re: Mojolicious::Lite: Should i use the build-in web server?

Replies are listed 'Best First'.
Re^2: Mojolicious::Lite: Should i use the build-in web server?
by karlgoethebier (Abbot) on May 11, 2014 at 13:07 UTC

    Thank you very much Pizentios for your advice. I'll give it a try.

    "...as we have no idea of what your application does..."

    Briefly, it's just about tracking some business processes:

    • Import some data (CSV or Excel files from various sources AKA departments)
    • There are about 1000 records every day
    • Every record should have a status
    • If a record is "imported" (or initial) status is 0
    • If the process is finished status is "solved"
    • Status is from 0 up to ~50
    • That means: "initial", "phoned customer", "emailed customer", "sent snail mail to customer"... "you didn't pay - go to jail"..."solved"
    • If the data matches some criterion (on import), status should be updated automatically
    • Sometimes the operators need to update status manually
    • Sometimes the operators need to add some comments to the records
    • If some status is reached, the data is to be exported as CSV or Excel file for further processing by the next department
    • Every record needs to be "checked out" by it's operator and marked as "locked"
    • If a record is "checked out" and marked as "locked" it should be visible to the other operators but not editable
    • There is a need for some "role concept" (from "read-only" up to do "everything")

    I described the software stack i use :-)

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      Sounds to me like perl and mojolicious would handle your processes just fine.....and do it fast. I have done many projects that involved processing csv files doing something with the data and then saving to a database or another format. I have found that perl does this type of thing very well. There are many modules in cpan for working with csv/excel.

      Mojolicious has plugins to get you running with roles very quickly as well (ie: operator status etc)...https://metacpan.org/pod/Mojolicious::Plugin::Authorization comes to mind. Good luck and i hope you enjoy the framework as much as i do.

      -Pizentios

        Thanks again Pizentios. I just started to play with this tools...

        Best regards, Karl

        «The Crux of the Biscuit is the Apostrophe»

      I use a stack made of Apache/Mod_perl/Postgres that I find very versatile; there are options to use nginx instead of Apache, and of course many databases through DBI.pm

      All of what you describe could be done with a couple modules in Perl that query some tables in a database and generate a few lines of html. Since you know Perl already, the initial learning curve for mod_perl does not seem huge.

      I'm not sure what a framework brings you over this in your case?



      libremen.com : legal case, contract and insurance claim management software
        "A basic theme which is...well, You understand what a basic theme is. And then the variations include ah, manoeuvres that might be executed with the aid of ah, extra-terrestrial gratification..." (Frank Zappa)

        Thank you very much for answering and best regards, Karl

        «The Crux of the Biscuit is the Apostrophe»