【问题标题】:Better for a chatroom app backend- Django or plain php?更适合聊天室应用程序后端 - Django 还是普通 php?
【发布时间】:2011-01-21 17:32:03
【问题描述】:

我目前正在制作我的网站的 2.0 版本,该版本目前基于 Django + ajax、php + ajax 和 html + fake-ajax*。除了新功能之外,我还想做一些清理工作。我的问题是,如果我使用 django 制作我的聊天应用程序后端,或者我坚持使用 php(我现在拥有的),你认为什么会减少服务器的负载?我的前端是 html 和 jQuery,我想最终做 html5 套接字,但我的目标受众已经嫁给了他们古老的浏览器。 (我认为随着苹果对 flash 的谴责,它会在几年内消失,对于移动设备,只有最新的 android 支持它,而且我所看到的并不真正表现良好,另一方面,我目前的解决方案无处不在!我的朋友甚至可以从他的 ePaper Nook 中使用它!)。所以我想尽可能多地用同一种语言而不是我的破解,但另一方面,我的 php 东西似乎比 django 的东西快一点,但我没有任何直接的 app4app 比较,我只做 php 图表室是因为我们一直在使用的 flash 3rd 方服务在授权方面很糟糕。此外,在整个重写之前,我不想打扰我当前的 django 应用程序(现在正在发生!)。感谢您的意见!

 *defination of fake-ajax(Read only if your curios):
 I was lazy and since content was small,
 I just have all my pages in vars on a single html page and us jQuery 
 to change the content of the content-div to whatever the user clicked from 
 the menu :-D(don't wory none of the content in vars needed to be seen by search engines)

【问题讨论】:

    标签: php ajax django chatroom


    【解决方案1】:

    只需使用您最熟悉的语言即可。性能差异可能不会产生巨大影响。无论哪种方式,如果您知道自己在做什么,使用 Python 或 PHP 都可以修复大部分性能问题。

    【讨论】:

      【解决方案2】:

      Django 会给你现成的授权和注册。但是,它无助于创建聊天窗口本身。

      如果 Django 对我来说太复杂了,我会看看更小的东西,比如 Flask 或 web.py。

      【讨论】:

        猜你喜欢
        • 2012-06-23
        • 1970-01-01
        • 1970-01-01
        • 2011-11-24
        • 2011-10-30
        • 2012-09-24
        • 2016-08-24
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多