python - Is concurrency possible in tornado? -
i understand tornado single threaded , non-blocking server, hence requests handled sequentially (except when using event driven approach io operation).
is there way process multiple requests parallel in tornado normal(non-io) execution. can't fork multiple process since need common memory space across requests.
if not possible please suggest me other python servers can handle parallel request , supports wsgi.
if going dealing multiple simultaneous requests compute-bound, , want in python, need multi-process server, not multi-threaded. cpython has global interpreter lock (gil) prevents more 1 thread executing python bytecode @ same time.
most web applications little computation, , instead waiting i/o, either database, or disk, or services on other servers. sure need handle compute-bound requests before discarding tornado.
Comments
Post a Comment