Is Tornado a replacement to Django or are they complementary to each other?

前端 未结 2 1004
失恋的感觉
失恋的感觉 2021-01-30 03:43

I have several questions about Tornado and other web frameworks.

1) Tornado claims to be a webserver (a non-blocking one, therefore much performant), so some people said

2条回答
  •  梦谈多话
    2021-01-30 04:30

    To answer the question,

    • NO, Tornado is not a replacement to Django. It's an alternative.

    • YES, they are complementary to each other but not in the same process (*)

    I would use Django when it's a big team effort and/or needs to run on a SQL database.

    I would use Tornado for everything else. Ie. personal projects, WebSocket related apps, apps that use a NoSQL backend.

    (*) don't bother running django inside tornado or the other way around unless you really have a strong requirement for that.

提交回复
热议问题