Is Tornado really non-blocking?

前端 未结 4 1367
余生分开走
余生分开走 2020-12-28 16:53

Tornado advertises itself as \"a relatively simple, non-blocking web server framework\" and was designed to solve the C10k problem. However, looking at thei

4条回答
  •  清歌不尽
    2020-12-28 17:17

    Tornado is nonblocking,but just limited to some IO operation like read or write to a socket file.

    if you want everything in your code nonblocking,you have to design by yourself.but if your code is computation intensively, then nonblocking is meaningless for you. this situation you might use multi-process.

    remember one thing nonblocking just mean the server send/receive date won’t blocking. If you can’t make your code nonblocking,then your whole application is someway blocking.

提交回复
热议问题