Django是否缩放? [英] Does Django scale?

查看:207
本文介绍了Django是否缩放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Django构建一个Web应用程序。我选择Django的原因是:




  • 我想使用免费/开源工具。

  • 我喜欢Python,觉得这是一个长期的语言,而对Ruby而言,我不清楚,PHP似乎是一个非常麻烦的学习。

  • 我正在建立一个一个想法的原型,并没有想太多关于未来。开发速度是主要因素,我已经知道Python了。

  • 我知道如果我以后选择这样做,Google App Engine的迁移将会更容易。

  • 我听说Django是不错的。



现在我越来越认真地发布我的作品我开始担心规模。 Django团队提供了关于Django扩展功能的唯一信息(我没有说任何事情来忽略它们,但这显然不是客观的信息...)。



我的问题:




  • 今天Django上建立的最大的网站是什么? (我主要以用户流量衡量)

  • Django每天可以处理100,000位用户,每次访问该网站几个小时?

  • 可以在Django上运行一个像Stack Overflow这样的站点?


解决方案


  1. p> Django今天建立的最大的网站是什么?



    没有任何一个地方收集有关Django流量的信息建造的网站,所以我必须使用来自不同地点的数据刺。首先,我们在主Django项目页面的首页上列出了Django网站,然后列出了Django在 djangosites.org 上建立了网站。通过列表,选择一些我知道的流量,我们看到:




  2. p> Django可以每天处理10万个用户,每次访问该网站几个小时?



    是的,请参见上文。 / p>


  3. Django可以像Stack Overflow这样的网站运行吗?



    我的直觉是肯定的,但正如其他人回答的那样,Mike Malone在演讲中提到数据库设计至关重要。如果我们可以找到任何可靠的流量统计信息,那么www.cnprog.com也可能会找到强有力的证明。无论如何,这不仅仅是通过扔在一起的Django模型来实现的:)


当然,更多的网站和博主有兴趣,但我必须停在某个地方!






博客文章关于使用Django构建高流量站点michaelmoore.com 被描述为 10,000网站 Quantcast统计资料 competition.com stats






(*)编辑的作者,包括这样的参考,曾经在该项目中作为外包开发人员工作。


I'm building a web application with Django. The reasons I chose Django were:

  • I wanted to work with free/open-source tools.
  • I like Python and feel it's a "long term" language, whereas regarding Ruby I wasn't sure, and PHP seemed like a huge hassle to learn.
  • I'm building a prototype for an idea and wasn't thinking too much about the future. Development speed was the main factor, and I already knew Python.
  • I knew the migration to Google App Engine would be easier should I choose to do so in the future.
  • I heard Django was "nice".

Now that I'm getting closer to thinking about publishing my work, I start being concerned about scale. The only information I found about the scaling capabilities of Django is provided by the Django team (I'm not saying anything to disregard them, but this is clearly not objective information...).

My questions:

  • What's the "largest" site that's built on Django today? (I measure size mostly by user traffic)
  • Can Django deal with 100,000 users daily, each visiting the site for a couple of hours?
  • Could a site like Stack Overflow run on Django?

解决方案

  1. "What are the largest sites built on Django today?"

    There isn't any single place that collects information about traffic on Django built sites, so I'll have to take a stab at it using data from various locations. First, we have a list of Django sites on the front page of the main Django project page and then a list of Django built sites at djangosites.org. Going through the lists and picking some that I know have decent traffic we see:

  2. "Can Django deal with 100,000 users daily, each visiting the site for a couple of hours?"

    Yes, see above.

  3. "Could a site like Stack Overflow run on Django?"

    My gut feeling is yes but, as others answered and Mike Malone mentions in his presentation, database design is critical. Strong proof might also be found at www.cnprog.com if we can find any reliable traffic stats. Anyway, it's not just something that will happen by throwing together a bunch of Django models :)

There are, of course, many more sites and bloggers of interest, but I have got to stop somewhere!


Blog post about Using Django to build high-traffic site michaelmoore.com described as a top 10,000 website. Quantcast stats and compete.com stats.


(*) The author of the edit, including such reference, used to work as outsourced developer in that project.

这篇关于Django是否缩放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆