in reply to Re^6: Alternative to CGI.pm
in thread Alternative to CGI.pm
the only indisputable part of the equation is that webapps should be persistent
Why?
Perl interpreter startup time? For the applications that use (and wrote) in several LANs, it simply does not matter. The machines are so fast that startup time is irrelevant.
Keeping code in memory to prevent slow disk access? Well, at least in the LANs mentioned above, disks are fast enough when combined with the caching done by the OS. SSDs will reduce "disk" access time even more. And by the way: keeping large frameworks out reduces the code size and the startup time.
Session management? The session should persist a restart of the application, so it can also persist one restart per HTTP request.
Database connection startup? See interpreter startup. The machines are fast enough so that it simply does not matter.
Guaranteed cleanup? Well, CGIs are guaranteed to start up from a clean state, simply because there is no old request lingering around.
Responding to every keystroke on a web page within milliseconds? Well, yes, that's a point for having a persistent application. But is that really needed in every single case? I don't think so.
Alexander
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Alternative to CGI.pm
by Your Mother (Archbishop) on Mar 28, 2017 at 05:22 UTC | |
by kbrannen (Beadle) on Mar 28, 2017 at 22:57 UTC | |
by Your Mother (Archbishop) on Mar 29, 2017 at 03:19 UTC | |
by kbrannen (Beadle) on Mar 29, 2017 at 18:53 UTC | |
by Anonymous Monk on Mar 28, 2017 at 23:56 UTC | |
by kbrannen (Beadle) on Mar 29, 2017 at 17:58 UTC |