用于巨大Java EE应用程序的MVC框架

时间:2022-10-20 20:12:26

Which MVC-framework is the best option (performance/ease of development) for a web application, that will have + 2 million visits per week.

哪个MVC框架是Web应用程序的最佳选择(性能/易于开发),每周将有200万次访问。

Basically the site is a search engine,but also there will be large amounts of XML parsing, and high db traffic.

基本上该站点是一个搜索引擎,但也会有大量的XML解析和高数据流量。

We are using Java, over Jboss 4.2.3x, with PG as DB, and Solr for the searches.

我们使用Java,而不是Jboss 4.2.3x,PG作为DB,Solr用于搜索。

We were thinking on code JSPs with taglibs, and Servlets, but we were feeling like there would be a better alternative, which don't know yet, as we are starting on the Java Web applications world.

我们正在考虑使用taglib和Servlets的代码JSP,但我们感觉会有一个更好的替代方案,但还不知道,因为我们正在开始Java Web应用程序世界。

Any opinions, and shares of your experience will be appreciated!
Thanks in advance!

任何意见和分享您的经验将不胜感激!提前致谢!

2 个解决方案

#1


I think you really need to sit down with the options, and assess each one (or combination thereof).

我认为你真的需要坐下来选择,并评估每一个(或其组合)。

Some possible framewords that you might use (that come to mind, beyond plain old JSPs with Servlets) are:

您可能会使用的一些可能的框架词(我想到的是,除了使用Servlet的普通旧JSP之外):

  • Struts and Tiles
  • Struts和Tiles

  • Spring
  • Hibernate
  • Roll your own framework (often worthwhile for large projects, but only if you know what you need which is unlikely if you haven't done web apps before)
  • 滚动你自己的框架(对于大型项目来说通常是值得的,但只有你知道你需要什么,如果你之前没有完成过网络应用程序,这是不可能的)

  • Grails (Groovy on Rails, but it runs on the JVM and can use Java libs)
  • Grails(Groovy on Rails,但它在JVM上运行,可以使用Java库)

and many more I'm sure...

还有更多我肯定......

Do you want to reinvent the wheel? What client-side frameworks will you also want to use?

你想重新发明*吗?您还想使用哪些客户端框架?

#2


Spring MVC may be your best choice. While it is easy to use and integrate with the rest of the Java EE stack, it allows a huge level of customization, and last but not the least, it is really fast because there's little overhead. I highly recommend it.

Spring MVC可能是您的最佳选择。虽然它易于使用并与Java EE堆栈的其余部分集成,但它允许大量的自定义,并且最后但并非最不重要的是,它非常快,因为它的开销很小。我强烈推荐它。

#1


I think you really need to sit down with the options, and assess each one (or combination thereof).

我认为你真的需要坐下来选择,并评估每一个(或其组合)。

Some possible framewords that you might use (that come to mind, beyond plain old JSPs with Servlets) are:

您可能会使用的一些可能的框架词(我想到的是,除了使用Servlet的普通旧JSP之外):

  • Struts and Tiles
  • Struts和Tiles

  • Spring
  • Hibernate
  • Roll your own framework (often worthwhile for large projects, but only if you know what you need which is unlikely if you haven't done web apps before)
  • 滚动你自己的框架(对于大型项目来说通常是值得的,但只有你知道你需要什么,如果你之前没有完成过网络应用程序,这是不可能的)

  • Grails (Groovy on Rails, but it runs on the JVM and can use Java libs)
  • Grails(Groovy on Rails,但它在JVM上运行,可以使用Java库)

and many more I'm sure...

还有更多我肯定......

Do you want to reinvent the wheel? What client-side frameworks will you also want to use?

你想重新发明*吗?您还想使用哪些客户端框架?

#2


Spring MVC may be your best choice. While it is easy to use and integrate with the rest of the Java EE stack, it allows a huge level of customization, and last but not the least, it is really fast because there's little overhead. I highly recommend it.

Spring MVC可能是您的最佳选择。虽然它易于使用并与Java EE堆栈的其余部分集成,但它允许大量的自定义,并且最后但并非最不重要的是,它非常快,因为它的开销很小。我强烈推荐它。