Posts: 4,653
Threads: 1,496
Joined: Sep 2016
i'm still not understanding any of this. to me "routing" applies to packets; i don't understand what it means in a web/framework context. fyi i now have mod-wsgi running on my apache web server. it lets me code my web page handlers in python instead of C under CGI. what more do i sill need?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,653
Threads: 1,496
Joined: Sep 2016
Jun-15-2017, 05:32 AM
(This post was last modified: Jun-15-2017, 05:32 AM by Skaperen.)
mod-wsgi always calls application(). is that a fixed routing? is there value to calling different functions? i suppose if we keep other stuff like globals or class instances around, then there can be data retention value. but that would need the same process. my web server is running 24 processes. getting web requests to come to the same process has been a classic problem. but you also don't want to be limited to N web sessions, either. what i have tried in the past (in C) was to start listening on a unique port and construct URLs to go to that port. that way the same process handles more requests from the same user. maybe i can do this with Python?
is this a framework? i still don't know what it is (and assume it to be something different than <frame> tags).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.