一种高效的Web服务性能优化策略  被引量:10

A High-Performance Strategy for Optimizing Web Services

在线阅读下载全文

作  者:李磊[1] 牛春雷[2] 陈宁江[3] 魏峻[2] 

机构地区:[1]中国科学技术大学计算机科学技术系,合肥230026 [2]中国科学院软件研究所软件工程技术中心,北京100080 [3]广西大学计算机与电子信息学院,南宁530004

出  处:《计算机研究与发展》2007年第7期1191-1198,共8页Journal of Computer Research and Development

基  金:国家自然科学基金项目(60673112);国家"九七三"重点基础研究发展规划基金项目(2002CB312005);国家"八六三"高技术研究发展计划基金项目(2006AA01Z19B)

摘  要:Web服务是构建面向服务架构(SOA)的主流分布式计算技术.基于XML的数据传输格式在给Web服务带来众多优点的同时,严重影响了其性能,制约了Web服务的应用.众多研究表明,XML解析和数据绑定是Web服务的主要性能瓶颈.着眼于避免传统XML解析和运行时Java反射过程的开销,提出了一种新颖的Web服务性能优化策略.它为每个Web服务生成一个特定于该服务的SOAP消息处理器,通过在对SOAP消息的一遍扫描中高效地生成服务业务逻辑调用所需的参数对象.实验结果表明,该优化策略能够有效地提高Web服务的性能.Web services are the mainstream distributed computing technology to construct a servlce-oriented architecture (SOA). Over the past few years, lots of works have been carried out in comparing SOAP with binary protocols, such as Java RMI and CORBA. These researches show that there is a dramatic difference in the amount of encoding necessary for data transmission, when XML is compared with the binary encoding style, and all these researches have proven that SOAP, because of its reliance on XML, is inefficient compared with its peers in distributed computing. Although the performance of Web services is adequate for many important purposes, processing speed unfortunately remains to be a problem in more demanding applications. Some limitations are inherent in core features of XML: it is text based, flexible in format, and carries redundant information. Aiming at this question, a new approach to improve Web services performance is proposed. To avoid the cost brought by the traditional XML parsing and Java reflection at runtime, a specific SOAP message processor is generated dynamically for each Web service, which can create Java object for service business invoking by scanning SOAP message only once. The given experiments show that the approach can effectively improve the performance of Web service by incorporating the SOAP message processor into the SOAP engine.

关 键 词:WEB服务 SOAP消息处理器 性能优化 XML解析 JAVA反射 

分 类 号:TP393[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象