Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Some questions related to tornado httpserver and httpclient
Question 1:

tornado.httpserver is a non-blocking http server. Is there any blocking http server?

Question 2:

Does asynchronous always mean non-blocking? Does synchronous always mean blocking?

Thanks for your help!
Can you give some more context on these questions? The hello-world for tornado shows a synchronous example. As far as "any blocking http server" it depends on what you mean; do individual requests usually bock? Yes. Does the server itself run only a single blocking thread? No. From a bit of Googling, synchronous and blocking are largely synonymous with perhaps some nuance that I'm not getting.

My background on this: I worked with Play Scala for a year professionally (it is heavy on "Non-blocking I/O"), and I've used Flask both professionally and many times for fun (it doesn't focus on "Non-blocking I/O" or anything like it). The biggest difference for my relatively simple purposes was that in Play, there was a lot of composition of futures.
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  When should I use Tornado? ksimmi 0 169 Oct-08-2019, 06:20 PM
Last Post: ksimmi
  Selenium related queries Prince_Bhatia 1 1,032 Dec-28-2017, 04:07 PM
Last Post: nilamo
  Tornado / Flask help needed jogl 2 2,201 Aug-27-2017, 10:21 PM
Last Post: jogl

Forum Jump:

Users browsing this thread: 1 Guest(s)