Python适用于庞大的企业级应用吗? [英] Is Python suitable for a huge, enterprise size app?

查看:304
本文介绍了Python适用于庞大的企业级应用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所工作的公司即将开始开发一个商业

应用程序,这将花费我们数千万美元来开发。当所有的都是

表示并完成它将有数千个业务对象/类,其中一些

将有数十万个实例存储在数据库中。 br />
我们的客户可能在白天有50-200个用户在应用程序上工作,可能在多个办公室,然后是

大量的批处理过程必须每晚运行。

还需要为某些用户提供Web界面。它需要坚固,易于维护,并且能够为每个客户定制。


现在看起来Java是首选语言应用程序

将在开发中。但是,我最近一直在寻找和阅读很多关于Python的b $ b,在我看来Python可以处理它。 />
对我来说最吸引人的是开发人员的工作效率。看来,如果Python可以处理它,那么我们可以通过单独从生产力角度使用

Python而不是Java来获得巨大的节省。


所以,考虑到第一段中非常一般的要求,你是否认为Python可以处理它?
如果有人有直接的经验

用Python开发大型应用程序,我将非常感谢您的见解。

根据我得到的回复,我打算写一个提案给我

管理层要考虑Python而不是Java。


谢谢,

John

The company I work for is about to embark on developing a commercial
application that will cost us tens-of-millions to develop. When all is
said and done it will have thousands of business objects/classes, some
of which will have hundreds-of-thousands of instances stored in a DB.
Our clients will probably have somewhere between 50-200 users working
on the app during the day, possibly in mutiple offices, and then a
large number of batch processes will have to run each night. It will
also need to have a web interface for certain users. It needs to be
robust, easy to maintain, and able to be customized for each client.

Right now it looks like Java is the language of choice that the app
will be developed in. However, I have been looking and reading a lot
about Python recently and it seems to me that Python could handle it.
The big attraction to me is the developer productivity. It seems that
if Python can handle it, then we could gain a huge savings by using
Python instead of Java from a productivity standpoint alone.

So, given the very general requirements in the first paragraph, do you
think that Python could handle it? If anyone has direct experience
developing large apps in Python, I would appreciate your insight.
Based on the responses I get, I am planning on writing a proposal to my
management to consider Python instead of Java.

Thanks,
John

推荐答案

答案似乎是肯定的。请参阅 http://www.artima.com/intv/speed.html


HTH,

Bernd

The answer seems to be yes. See http://www.artima.com/intv/speed.html

HTH,
Bernd


>所以,鉴于第一段中非常一般的要求,你要
> So, given the very general requirements in the first paragraph, do
you
认为Python可以处理它吗?如果有人有直接经验用Python开发大型应用程序,我将非常感谢您的见解。
think that Python could handle it? If anyone has direct experience
developing large apps in Python, I would appreciate your insight.



我不会,尤其是[1]如果您的数千个业务对象获得

在系统运行时分配/解除分配。目前python的记忆

的使用量可以快速增长(从o / s的角度来看),当重复创建和释放大量的对象时,可以快速增加对象数量。


另一方面,你可以使用python和C ++的组合

(也许使用boost'的python包装代码)。创建

C / C ++模块的能力是退出监狱免费卡。 - 如果你确实设法

说服你的公司使用python,并且它在一些

区域不足,那么自定义C模块可能是一个方便的技巧。 />

也许你可以将你的项目与现有的大型python

项目进行比较;像Zope一样?


[1]如果系统中的对象是静态的,而不是动态的,那么这不是问题。我的我不会来自

的事实,你的要求包括大量对象作为一个功能,并没有关于

如何使用它们的说法。


祝你好运:-)

Keir。


I wouldn''t, especially[1] if your thousands of business objects get
allocated/deallocated as the system runs. Currently python''s memory
usage can grow rapidly (from the perspective of the o/s) when large
numbers of objects are repeatedly created and freed.

On the other hand, you could use a combination of python and C++
(perhaps using boost''s python wrapping code). The ability to create
C/C++ modules is a "get out of jail free card" - if you did manage to
convince your company to go with python, and it fell short in some
area, a custom C module could be a handy trick.

Perhaps you could compare your project to existing large python
projects; like Zope maybe?

[1] if the objects in the system are static, rather than dynamic, of
course this is not an issue. My "I wouldn''t" comes from the fact that
your requirements include "lots of object" as a feature, and no word on
how they will be used.

Good luck anyway :-)
Keir.


我没有看到任何可以消除Python的内容。你可能想要快速查看一些用Zope完成的相当大的
应用程序(用Python编写)。

Zope甚至可能是一个很好的应用程序平台,可以建立在
之上(不能肯定,关于应用程序的细节不够)。

即使你没有''我想使用所有的Zope,ZODB是一个很好的经过测试的持久性Python对象存储库,可能会证明

很有帮助。


还有许多其他项目支持使用Python编写的200多个
用户。


-Larry Bates


john67写道:
I don''t see anything listed that would eliminate Python. You
may want to take a quick look at some of the rather large
applications that have been done with Zope (written in Python).
Zope might even be a good application platform to build upon
(can''t say for sure, not enough detail about application).
Even if you don''t want to use all of Zope the ZODB is a well
tested persistent Python object store that might prove
helpful.

There are many other projects supporting WAY more than 200
users that are written in Python.

-Larry Bates

john67 wrote:
我工作的公司即将开始开发一个商业
应用程序,这将花费我们数千万美元来开发。当所有人都说完了,它将拥有数以千计的业务对象/类,其中一些将在数据库中存储数十万个实例。
我们的客户可能会有白天在应用程序上工作的50-200个用户之间,可能在多个办公室,然后每天晚上必须运行大量的批处理过程。它还需要为某些用户提供Web界面。它需要坚固,易于维护,并且能够为每个客户定制。

现在看起来Java是应用程序将选择的语言
但是,我最近一直在寻找和阅读很多关于Python的内容,在我看来Python可以处理它。
对我来说最吸引人的是开发人员的工作效率。看来,如果Python可以处理它,那么仅从生产力的角度来看,我们可以通过使用Python而不是Java来获得巨大的节省。

所以,鉴于非常一般在第一段中的要求,你认为Python可以处理它吗?如果有人有直接经验用Python开发大型应用程序,我将非常感谢您的见解。
根据我得到的回复,我计划向我的管理层提交一份提案,以考虑使用Python Java。

谢谢,
John
The company I work for is about to embark on developing a commercial
application that will cost us tens-of-millions to develop. When all is
said and done it will have thousands of business objects/classes, some
of which will have hundreds-of-thousands of instances stored in a DB.
Our clients will probably have somewhere between 50-200 users working
on the app during the day, possibly in mutiple offices, and then a
large number of batch processes will have to run each night. It will
also need to have a web interface for certain users. It needs to be
robust, easy to maintain, and able to be customized for each client.

Right now it looks like Java is the language of choice that the app
will be developed in. However, I have been looking and reading a lot
about Python recently and it seems to me that Python could handle it.
The big attraction to me is the developer productivity. It seems that
if Python can handle it, then we could gain a huge savings by using
Python instead of Java from a productivity standpoint alone.

So, given the very general requirements in the first paragraph, do you
think that Python could handle it? If anyone has direct experience
developing large apps in Python, I would appreciate your insight.
Based on the responses I get, I am planning on writing a proposal to my
management to consider Python instead of Java.

Thanks,
John



这篇关于Python适用于庞大的企业级应用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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