用于拍卖网站的框架的性能比较
我是一名 Java 人员,因此更喜欢基于 Java 的拍卖网站框架,我计划从头开始开发该框架。 但我所有的同事和朋友都向我指出,现在出现的更好的网站大多是使用 Ruby on Rails、Django 或 ASP.net MVC 框架编写的。
我想知道这里是否有人对 Struts 2 等一些基于 Java 的框架与任何其他侧重于有限资源和性能的框架进行了比较?
I am a Java guy and therefore would prefer a Java based framework for an auction site that I am planning to develop from scratch. But all my colleagues and friends have pointed out to me that the better sites that are coming up now-a-days are mostly written either using Ruby on Rails, Django or ASP.net MVC framework.
I was wondering if anyone here has done a comparisons of some Java-based frameworks like Struts 2 v/s any of the other frameworks with a focus on limited resources and performance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有一些非常大的网站运行在基于 Java 的框架上。 我知道英国的 Sky News 运行在 Grails 上,它在幕后使用 Spring MVC。 本身不是证据,而是表明这是可能的。 如果您需要与 RoR 进行比较,那么 Grails 可能就是合适的选择。 确保考虑 Java 应用程序服务器为您提供的扩展可能性。
There are some very big sites that run on Java based frameworks. I know that Sky News in the UK runs on Grails which uses Spring MVC under the covers. Not evidence per se but an indication that it is possible. If you need a comparison with RoR then Grails might be just the thing. Make sure you take into account the scaling possibilities that Java application servers give you.
我还没有看到任何良好的性能比较。 例如,很久以前的 PetShop 对 Java 和 .NET 的比较被广泛认为存在严重缺陷。
但是,我希望经过适当的分析和负载测试的编写良好的应用程序能够在任何这些平台上正常运行。 猜测性能瓶颈的编写不佳的应用程序将在任何这些平台上失败。
换句话说,更多的是你使用平台做什么,而不是平台本身的选择。 显然这不是普遍正确的,但对于您给出的选择,我相信您应该没问题。
现在,您更有可能在您熟悉的平台上做好工作(尽管它当然不会提供相同的学习机会)。 那么您将成为唯一的开发人员,还是会有一个团队? 如果你要成为团队的一员,其他成员怎么想? (不清楚你提到的朋友/同事是否正在从事该项目。)你这样做是为了好玩,还是为了赚钱? (这很可能会改变你对学习和做你所知道的事情的重视程度。)
I haven't seen any good performance comparisons. For example, the PetShop comparisons between Java and .NET from a long time ago were widely regarded as heavily flawed.
However, I'd expect that a well-written application, put through appropriate profiling and load testing, will be fine on any of those platforms. A poorly written application which guesses at performance bottlenecks will fail on any of those platforms.
In other words, it's more what you do with the platform than the choice of platform itself. Obviously that's not universally true, but for the choices you've given I believe you should be fine.
Now, you're more likely to do a good job on a platform you're familiar with (although it won't provide the same learning opportunities of course). So are you going to be the sole developer, or will there be a team? If you're going to be part of a team, what do the other members think? (It's not clear whether the friends/colleagues you mention are working on the project.) Are you doing this for fun, or to make money? (That may well change the emphasis you put on learning vs doing what you know.)
我认为最重要的性能比较是比较您为不同框架编写的代码的性能。 我相信这对整体性能的影响比框架本身更大。 如果您使用熟悉的环境,那么编写性能良好的解决方案的机会就会增加,即使所讨论的框架不是“最快”的框架。
I think that the most important performance comparison to do is to compare the performance of the code that you write for the different frameworks. I believe that will affect overall performance more than the framework itself. If you use an environment that you know well, the chances for writing a well-performing solution increases, even if the framework in question is not the "fastest" one.