Some questions related to tornado httpserver and httpclient -
question 1:
tornado.httpserver non-blocking http server. there blocking http server?
question 2:
does asynchronous mean non-blocking? synchronous mean blocking?
question 3:
are tornado.curl_httpclient , tornado.simple_httpclient both non-blocking, aka, asynchronous?
question 1: yes, flask , django , simplehttpserver other multithreaded http servers written in python "blocking". if write code uses 1 of servers implement http server application, code not use "yield" or "await" or callbacks implement logic.
question 2: pedants "synchronous" , "blocking" distinct , "asynchronous" , "non-blocking" distinct. expect several of them in answer question. however, interchangeable ideas purposes: synchronous , blocking synonyms, , asynchronous , non-blocking synonyms.
question 3: docs say, tornado.simple_httpclient.asynchttpclient
non-blocking, curlhttpclient. suggest you read tornado's docs async, includes definitions of sync , async, , code examples both sync , async http clients.
Comments
Post a Comment