Django是否缩放? [英] Does Django scale?
问题描述
- 我想使用免费/开源工具。
- 我喜欢Python,觉得这是一个长期的语言,而对Ruby而言,我不清楚,PHP似乎是一个非常麻烦的学习。
- 我正在建立一个一个想法的原型,并没有想太多关于未来。开发速度是主要因素,我已经知道Python了。
- 我知道如果我以后选择这样做,Google App Engine的迁移将会更容易。
- 我听说Django是不错的。
现在我越来越认真地发布我的作品我开始担心规模。 Django团队提供了关于Django扩展功能的唯一信息(我没有说任何事情来忽略它们,但这显然不是客观的信息...)。
我的问题:
- 今天Django上建立的最大的网站是什么? (我主要以用户流量衡量)
- Django每天可以处理100,000位用户,每次访问该网站几个小时?
- 可以在Django上运行一个像Stack Overflow这样的站点?
- p> Django今天建立的最大的网站是什么?
没有任何一个地方收集有关Django流量的信息建造的网站,所以我必须使用来自不同地点的数据刺。首先,我们在主Django项目页面的首页上列出了Django网站,然后列出了Django在 djangosites.org 上建立了网站。通过列表,选择一些我知道的流量,我们看到:
-
a href =http://pinterest.com/ =noreferrer> Pinterest : Alexa rank 37(21.4.2015)& 2013年有7000万用户
-
curse.com :每天600kk的访问次数,还可以看到由David Cramer提供服务500,000页/小时的快速开发。
-
tabblo.com : 44k每日访问,请参阅Ned Batchelder的帖子现代基础设施网站。
-
chesspark。 com : Alexa 排名约179k。
-
pownce.com (否更长的活动): alexa 排名大约65k。
Pownce的Mike Malone在他的EuroDjangoCon演讲中,介绍了 缩放Django Web Apps 说每秒数百次命中。这是一个非常好的演示文稿,如何缩放Django,并且提供了一些好点,包括Django可伸缩性中的(当前)缺点。 -
Django 1.5: ePrint中心。然而,对于novemer / 2015,整个网站被迁移,这个链接只是一个重定向。这个网站是全球范围的服务,正在订阅Instant Ink和惠普提供的相关服务(*)。
- p> Django可以每天处理10万个用户,每次访问该网站几个小时?
是的,请参见上文。 / p>
-
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?
"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:
Instagram: What Powers Instagram: Hundreds of Instances, Dozens of Technologies.
Pinterest: Alexa rank 37 (21.4.2015) & 70 Million users in 2013
curse.com: 600k daily visits, also see Rapid development serving 500,000 pages/hour by David Cramer.
tabblo.com: 44k daily visits, see Ned Batchelder's posts Infrastructure for modern web sites.
chesspark.com: Alexa rank about 179k.
pownce.com (no longer active): alexa rank about 65k. Mike Malone of Pownce, in his EuroDjangoCon presentation on Scaling Django Web Apps says "hundreds of hits per second". This is a very good presentation on how to scale Django, and makes some good points including (current) shortcomings in Django scalability.
HP had a site built with Django 1.5: ePrint center. However, as for novemer/2015 the entire website was migrated and this link is just a redirect. This website was a world-wide service attending subscription to Instant Ink and related services HP offered (*).
"Can Django deal with 100,000 users daily, each visiting the site for a couple of hours?"
Yes, see above.
"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屋!