CGI?
|
Author | Content |
---|---|
rgviza Jun 04, 2008 8:52 AM EDT |
why not mod_python(http://www.modpython.org/)? Using CGI sucks because every page load starts an additional python process which isn't scalable. Don't do this in production... mod python runs in apache within the process as a DSO so is much more efficient. From the site: "Mod_python is an Apache module that embeds the Python interpreter within the server. With mod_python you can write web-based applications in Python that will run many times faster than traditional CGI and will have access to advanced features such as ability to retain database connections and other data between hits and access to Apache internals. A more detailed description of what mod_python can do is available in this O'Reilly article." Persistent db connections is just one benefit. -Viz |
Posting in this forum is limited to members of the group: [ForumMods, SITEADMINS, MEMBERS.]
Becoming a member of LXer is easy and free. Join Us!