Twisted(asynch server) vs Django(or any other framework)

后端 未结 6 1929
春和景丽
春和景丽 2020-12-28 19:04

I need help understanding what the advantage of using an asynch framework is. Suppose I want to develop a simple chat web app. Why cant I write python code in the Django fra

6条回答
  •  误落风尘
    2020-12-28 19:39

    You could use WHIFF instead of either :). Check out http://aaron.oirt.rutgers.edu/myapp/gfChat/nucularChatRoom which uses a javascript polling loop with json to check for server updates. You could probably do something similar in Django, but I don't know how because I gave up on Django.

    btw: I'm hoping to move this demo onto the google app engine as a more complete service when my life calms down a bit.

提交回复
热议问题