Python Web Programming - 寻找可靠的高流量站点的示例 [英] Python Web Programming - looking for examples of solid high-traffic sites

查看:53
本文介绍了Python Web Programming - 寻找可靠的高流量站点的示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello list,


我们的团队将重写我们现有的网站,该网站有很多

的动态内容,很快就被原型化了一些很久以前。


今天,当我们更好地了解我们需要什么时,我们将从头开始重新编写
所有内容。 Python是我们团队的明显候选人:

每个人都知道它,每个人都喜欢它,它有*真正的*对象,很好

干净的语法等


我们将要使用的工具的主要要求是坚如磐石

稳定性。正如我们的团队成员所说的那样,我们想要使用稳定的工具

,有很多开发人员年和数千个用户年

落后于他们,我们不应该担心他们的_versions _。

的主要原因是我们想调试自己的错误,但不是我们工具中的错误。


我们的问题是 - 我们还必须找到任何高流量,完全用Python编写的可扩展的网站。我们知道YouTube是可疑的b $ ba,但我们不知道具体的python网络解决方案是什么?
在那里使用。


TurboGears,Django和Pylons都很不错,而且提供丰富的功能

- 对我们来说可能太多了 - 但据我们所知,他们不会
满足稳定性要求 - Pylons和Django甚至还没有达到
达到1.0版本。而且它们提供了太厚的层 - 我们想要

'更接近金属'',可能类似于web.py -

不幸的是,web.py没有满足稳定性要求

似乎也是如此。


所以问题是:什么是在

python?我们的初始版本类似于python + mod_python +

Apache,但是我们被告知mod_python是'可怕而且不能正常工作

很好'' 。


虽然 http:// www.python.org/about/quotes/ 列出了许多大牌

和精彩的例子,想了解更多细节。例如。我们的理解

是Google使用python主要用于内部网站,而且
的性能远远不是完美的。 YouTube是一个有趣的

示例 - 有谁知道更多相关细节?


非常欢迎您的建议和意见!


最诚挚的问候,

Victor。

解决方案

Victor Kryukov写道:
< blockquote class =post_quotes>
Hello list,


我们的团队将重写我们现有的网站,其中有很多

动态内容并且很快就被原型化了。



....


我们将要使用的工具的主要要求是摇滚-solid

稳定性。正如我们的团队成员所说的那样,我们想要使用稳定的工具

,有很多开发人员年和数千个用户年

落后于他们,我们不应该担心他们的_versions _。

的主要原因是我们想调试自己的错误,但不是我们工具中的错误。



那么你可能对Python不满意。


花了几个月的时间来实现一个相当复杂的/>
Python网站,我现在已经了解了所涉及的问题。

这是非常重要的。


一些关键网站站点组件,如SSL接口和

MySQL接口,都是用C语言编写的,由第三方维护,

通常由一个人完成。为您的

平台获取正确的版本并使其正常工作可能很困难。获得正确的

版本的MySQL,OpenSSL和Python一起玩,是非常重要的。期望必须从源码构建,调试构建

进程,查看源存储库,提交错误报告,自行修复
库错误,并维护本地库集补丁。


很少有托管公司会为你提供这些模块。

它不像Perl或PHP,开箱即用。 WebFaction

声称支持Python很好,但很少有其他托管公司打扰。

大多数Linux发行版附带旧版本的Python,并且

这是大多数托管公司会给你的。 Python 2.4

是课程的标准。


高流量网站是一个问题。有许多

框架,全部由不同的人支持,具有不同的

功能。请参阅

http://www.polimetrix.com/ pycon / slides /


进行讨论。我没有尝试过他们中的大多数,所以我不会对这个问题说些什么。


我们的问题是 - 我们还必须找到任何高流量的例子,这些可扩展的网站完全用Python编写。我们知道YouTube是一个嫌疑人,但我们不知道具体的python网络解决方案是什么?
在那里使用。



并非如此多的YouTube真正使用Python。视频

编解码器不是;如果他们是,他们会永远。而且,由于谷歌接受了b / b
,旧的YouTube搜索引擎(这很糟糕)被谷歌的搜索技术所取代。

John Nagle


5月16日下午6:04,Victor Kryukov< victor.kryu ... @ gmail.comwrote:


Hello list,


我们的团队将重写我们现有的网站,该网站有很多

的动态内容和很久以前很快就成了原型。


今天,随着我们更好地了解我们需要什么,我们将重新编写

刮。 Python是我们团队的明显候选人:

每个人都知道它,每个人都喜欢它,它有*真正的*对象,很好

干净的语法等


我们将要使用的工具的主要要求是坚如磐石

稳定性。正如我们的团队成员所说的那样,我们想要使用稳定的工具

,有很多开发人员年和数千个用户年

落后于他们,我们不应该担心他们的_versions _。

的主要原因是我们想调试自己的错误,但不是我们工具中的错误。


我们的问题是 - 我们还必须找到任何高流量,完全用Python编写的可扩展的网站。我们知道YouTube是可疑的b $ ba,但我们不知道具体的python网络解决方案是什么?
在那里使用。


TurboGears,Django和Pylons都很不错,而且提供丰富的功能

- 对我们来说可能太多了 - 但据我们所知,他们不会
满足稳定性要求 - Pylons和Django甚至还没有达到
达到1.0版本。而且它们提供了太厚的层 - 我们想要

'更接近金属'',可能类似于web.py -

不幸的是,web.py没有满足稳定性要求

似乎也是如此。


所以问题是:什么是在

python?我们的初始版本类似于python + mod_python +

Apache,但是我们被告知mod_python是'可怕而且不能正常工作

很好'' 。


虽然http://www.python.org/about/quotes/lists许多大牌

和精彩的例子,但想了解更多细节。例如。我们的理解

是Google使用python主要用于内部网站,而且
的性能远远不是完美的。 YouTube是一个有趣的

示例 - 有谁知道更多相关细节?


非常欢迎您的建议和意见!


最诚挚的问候,

Victor。



看看reddit.com。

它是用WEBPY开发的,它接收了数百万次访问

每天。

还有很多用Django构建的网站(查看他们的网站)

a很多流量和非常好的性能

我相信其他框架可以显示其他成功案例...只需

查看他们的网站。


Luis


5月16日下午6:04,Victor Kryukov< victor.kryu ... @ gmail.comwrote:


你好名单,


我们的团队将重写我们现有的网站,该网站有很多动态内容很多b / b $ b $很久以前。


今天,当我们更好地了解我们需要什么时,我们将从头开始重新编写
所有内容。 Python是我们团队的明显候选人:

每个人都知道它,每个人都喜欢它,它有*真正的*对象,很好

干净的语法等


我们将要使用的工具的主要要求是坚如磐石

稳定性。正如我们的团队成员所说的那样,我们想要使用稳定的工具

,有很多开发人员年和数千个用户年

落后于他们,我们不应该担心他们的_versions _。

的主要原因是我们想调试自己的错误,但不是我们工具中的错误。


我们的问题是 - 我们还必须找到任何高流量,完全用Python编写的可扩展的网站。我们知道YouTube是可疑的b $ ba,但我们不知道具体的python网络解决方案是什么?
在那里使用。


TurboGears,Django和Pylons都很不错,而且提供丰富的功能

- 对我们来说可能太多了 - 但据我们所知,他们不会
满足稳定性要求 - Pylons和Django甚至还没有达到
达到1.0版本。而且它们提供了太厚的层 - 我们想要

'更接近金属'',可能类似于web.py -

不幸的是,web.py没有满足稳定性要求

似乎也是如此。


所以问题是:什么是在

python?我们的初始版本类似于python + mod_python +

Apache,但是我们被告知mod_python是'可怕而且不能正常工作

很好'' 。


虽然http://www.python.org/about/quotes/lists许多大牌

和精彩的例子,但想了解更多细节。例如。我们的理解

是Google使用python主要用于内部网站,而且
的性能远远不是完美的。 YouTube是一个有趣的

示例 - 有谁知道更多相关细节?


非常欢迎您的建议和意见!


最诚挚的问候,

Victor。



看看reddit.com。

它是用WEBPY开发的,它接收了数百万次访问

每天。

还有很多用Django构建的网站(查看他们的网站)

a很多流量和非常好的性能

我相信其他框架可以显示其他成功案例...只需

查看他们的网站。


Luis


Hello list,

our team is going to rewrite our existing web-site, which has a lot of
dynamic content and was quickly prototyped some time ago.

Today, as we get better idea of what we need, we''re going to re-write
everything from scratch. Python is an obvious candidate for our team:
everybody knows it, everybody likes it, it has *real* objects, nice
clean syntax etc.

Our main requirement for tools we''re going to use is rock-solid
stability. As one of our team-members puts it, "We want to use tools
that are stable, has many developer-years and thousands of user-years
behind them, and that we shouldn''t worry about their _versions_." The
main reason for that is that we want to debug our own bugs, but not
the bugs in our tools.

Our problem is - we yet have to find any example of high-traffic,
scalable web-site written entirely in Python. We know that YouTube is
a suspect, but we don''t know what specific python web solution was
used there.

TurboGears, Django and Pylons are all nice, and provides rich features
- probably too many for us - but, as far as we understand, they don''t
satisfy the stability requirement - Pylons and Django hasn''t even
reached 1.0 version yet. And their provide too thick layer - we want
something ''closer to metal'', probably similar to web.py -
unfortunately, web.py doesn''t satisfy the stability requirement
either, or so it seems.

So the question is: what is a solid way to serve dynamic web pages in
python? Our initial though was something like python + mod_python +
Apache, but we''re told that mod_python is ''scary and doesn''t work very
well''.

And although http://www.python.org/about/quotes/ lists many big names
and wonderful examples, be want more details. E.g. our understanding
is that Google uses python mostly for internal web-sites, and
performance is far from perfect their. YouTube is an interesting
example - anybody knows more details about that?

Your suggestions and comments are highly welcome!

Best Regards,
Victor.

解决方案

Victor Kryukov wrote:

Hello list,

our team is going to rewrite our existing web-site, which has a lot of
dynamic content and was quickly prototyped some time ago.

....

Our main requirement for tools we''re going to use is rock-solid
stability. As one of our team-members puts it, "We want to use tools
that are stable, has many developer-years and thousands of user-years
behind them, and that we shouldn''t worry about their _versions_." The
main reason for that is that we want to debug our own bugs, but not
the bugs in our tools.

You may not be happy with Python, then.

Having spent the last several months implementing a reasonably complex
web site in Python, I now have an understanding of the problems involved.
Which are non-trivial.

Some key web site components, like the SSL interface and the
MySQL interface, are written in C and maintained by third parties,
often by a single person. Getting the correct version for your
platform and making it work can be difficult. Getting the right
versions of MySQL, OpenSSL, and Python to all play together is
non-trivial. Expect to have to build from source, debug the build
process, look at source repositories, submit bug reports, fix
library bugs yourself, and maintain a local set of library patches.

Few hosting companies will have these modules available for you.
It''s not like Perl or PHP, where it works out of the box. WebFaction
claims to support Python well, but few other hosting companies bother.
Most Linux distributions ship with older versions of Python, and
that''s what most hosting companies will give you. Python 2.4
is par for the course.

High traffic sites are a problem. There are a number of
"frameworks", all supported by different people and with different
capabilities. See

http://www.polimetrix.com/pycon/slides/

for a discussion. I haven''t tried most of them, so I won''t
say anything about that issue.

Our problem is - we yet have to find any example of high-traffic,
scalable web-site written entirely in Python. We know that YouTube is
a suspect, but we don''t know what specific python web solution was
used there.

Not that much of YouTube is really in Python. The video
codecs aren''t; they''d take forever if they were. And since Google
took over, the old YouTube search engine (which was terrible) was
replaced by Google''s search technology.
John Nagle


On May 16, 6:04 pm, Victor Kryukov <victor.kryu...@gmail.comwrote:

Hello list,

our team is going to rewrite our existing web-site, which has a lot of
dynamic content and was quickly prototyped some time ago.

Today, as we get better idea of what we need, we''re going to re-write
everything from scratch. Python is an obvious candidate for our team:
everybody knows it, everybody likes it, it has *real* objects, nice
clean syntax etc.

Our main requirement for tools we''re going to use is rock-solid
stability. As one of our team-members puts it, "We want to use tools
that are stable, has many developer-years and thousands of user-years
behind them, and that we shouldn''t worry about their _versions_." The
main reason for that is that we want to debug our own bugs, but not
the bugs in our tools.

Our problem is - we yet have to find any example of high-traffic,
scalable web-site written entirely in Python. We know that YouTube is
a suspect, but we don''t know what specific python web solution was
used there.

TurboGears, Django and Pylons are all nice, and provides rich features
- probably too many for us - but, as far as we understand, they don''t
satisfy the stability requirement - Pylons and Django hasn''t even
reached 1.0 version yet. And their provide too thick layer - we want
something ''closer to metal'', probably similar to web.py -
unfortunately, web.py doesn''t satisfy the stability requirement
either, or so it seems.

So the question is: what is a solid way to serve dynamic web pages in
python? Our initial though was something like python + mod_python +
Apache, but we''re told that mod_python is ''scary and doesn''t work very
well''.

And althoughhttp://www.python.org/about/quotes/lists many big names
and wonderful examples, be want more details. E.g. our understanding
is that Google uses python mostly for internal web-sites, and
performance is far from perfect their. YouTube is an interesting
example - anybody knows more details about that?

Your suggestions and comments are highly welcome!

Best Regards,
Victor.


Take a look at reddit.com .
It''s been developed with WEBPY and it receives millions of visits
every day.
There are also many sites built with Django (check their website) with
a lot of traffic and very good performance
And I''m sure other frameworks can show other success stories... just
check their websites.

Luis


On May 16, 6:04 pm, Victor Kryukov <victor.kryu...@gmail.comwrote:

Hello list,

our team is going to rewrite our existing web-site, which has a lot of
dynamic content and was quickly prototyped some time ago.

Today, as we get better idea of what we need, we''re going to re-write
everything from scratch. Python is an obvious candidate for our team:
everybody knows it, everybody likes it, it has *real* objects, nice
clean syntax etc.

Our main requirement for tools we''re going to use is rock-solid
stability. As one of our team-members puts it, "We want to use tools
that are stable, has many developer-years and thousands of user-years
behind them, and that we shouldn''t worry about their _versions_." The
main reason for that is that we want to debug our own bugs, but not
the bugs in our tools.

Our problem is - we yet have to find any example of high-traffic,
scalable web-site written entirely in Python. We know that YouTube is
a suspect, but we don''t know what specific python web solution was
used there.

TurboGears, Django and Pylons are all nice, and provides rich features
- probably too many for us - but, as far as we understand, they don''t
satisfy the stability requirement - Pylons and Django hasn''t even
reached 1.0 version yet. And their provide too thick layer - we want
something ''closer to metal'', probably similar to web.py -
unfortunately, web.py doesn''t satisfy the stability requirement
either, or so it seems.

So the question is: what is a solid way to serve dynamic web pages in
python? Our initial though was something like python + mod_python +
Apache, but we''re told that mod_python is ''scary and doesn''t work very
well''.

And althoughhttp://www.python.org/about/quotes/lists many big names
and wonderful examples, be want more details. E.g. our understanding
is that Google uses python mostly for internal web-sites, and
performance is far from perfect their. YouTube is an interesting
example - anybody knows more details about that?

Your suggestions and comments are highly welcome!

Best Regards,
Victor.


Take a look at reddit.com .
It''s been developed with WEBPY and it receives millions of visits
every day.
There are also many sites built with Django (check their website) with
a lot of traffic and very good performance
And I''m sure other frameworks can show other success stories... just
check their websites.

Luis


这篇关于Python Web Programming - 寻找可靠的高流量站点的示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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