首页> 外文会议>ACM/IFIP/USENIX International Middleware Conference Jun 16-20, 2003 Rio de Janeiro, Brazil >Performance Comparison of Middleware Architectures for Generating Dynamic Web Content
【24h】

Performance Comparison of Middleware Architectures for Generating Dynamic Web Content

机译:生成动态Web内容的中间件体系结构的性能比较

获取原文
获取原文并翻译 | 示例

摘要

On-line services are making increasing use of dynamically generated Web content. Serving dynamic content is more complex than serving static content. Besides a Web server, it typically involves a server-side application and a database to generate and store the dynamic content. A number of standard mechanisms have evolved to generate dynamic content. We evaluate three specific mechanisms in common use: PHP, Java servlets, and Enterprise Java Beans (EJB). These mechanisms represent three different architectures for generating dynamic content. PHP scripts are tied to the Web server and require writing explicit database queries. Java servlets execute in a different process from the Web server, allowing them to be located on a separate machine for better load balancing. The database queries are written explicitly, as in PHP, but in certain circumstances the Java synchronization primitives can be used to perform locking, reducing database lock contention and the amount of communication between servlets and the database. Enterprise Java Beans (EJB) provide several services and facilities. In particular, many of the database queries can be generated automatically. We measure the performance of these three architectures using two application benchmarks: an online bookstore and an auction site. These benchmarks represent common applications for dynamic content and stress different parts of a dynamic content Web server. The auction site stresses the server front-end, while the online bookstore stresses the server back-end. For all measurements, we use widely available open-source software (the Apache Web server, Tomcat servlet engine, JOnAS EJB server, and MySQL relational database). While Java servlets are less efficient than PHP, their ability to execute on a different machine from the Web server and their ability to perform synchronization leads to better performance when the front-end is the bottleneck or when there is database lock contention. EJB facilities and services come at the cost of lower performance than both PHP and Java servlets.
机译:在线服务越来越多地使用动态生成的Web内容。提供动态内容比提供静态内容更为复杂。除Web服务器外,它通常还包含服务器端应用程序和数据库,以生成和存储动态内容。已经开发了许多标准机制来生成动态内容。我们评估了三种常用的特定机制:PHP,Java servlet和企业Java Bean(EJB)。这些机制代表了三种用于生成动态内容的体系结构。 PHP脚本与Web服务器绑定,需要编写显式的数据库查询。 Java servlet在不同于Web服务器的过程中执行,允许它们位于单独的机器上,以实现更好的负载平衡。像PHP中一样,数据库查询是显式编写的,但是在某些情况下,Java同步原语可用于执行锁定,从而减少数据库锁定争用以及Servlet与数据库之间的通信量。企业Java Bean(EJB)提供了多种服务和功能。特别是,许多数据库查询可以自动生成。我们使用两个应用程序基准测试这三种体系结构的性能:在线书店和拍卖网站。这些基准代表动态内容的常见应用程序,并强调动态内容Web服务器的不同部分。拍卖网站强调服务器前端,而在线书店强调服务器后端。对于所有测量,我们使用广泛可用的开源软件(Apache Web服务器,Tomcat Servlet引擎,JOnAS EJB服务器和MySQL关系数据库)。尽管Java Servlet的效率不如PHP,但它们在Web服务器之外的另一台机器上执行的能力以及执行同步的能力在前端成为瓶颈或存在数据库锁争用时,可以带来更好的性能。与PHP和Java servlet相比,EJB设施和服务的性能降低。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号