计算机应用 ›› 2010, Vol. 30 ›› Issue (3): 593-595.

• 软件过程技术 • 上一篇    下一篇

非实时服务的SOAP响应缓存策略及其应用

文俊浩1,李笑一2,向益其2   

  1. 1. 重庆大学
    2. 重庆大学 软件学院
  • 收稿日期:2009-09-22 修回日期:2009-11-18 发布日期:2010-03-14 出版日期:2010-03-01
  • 通讯作者: 文俊浩
  • 基金资助:
    国家科技支撑计划项目

SOAP response caching strategy for non-real time services and its application

  • Received:2009-09-22 Revised:2009-11-18 Online:2010-03-14 Published:2010-03-01
  • Supported by:
    Key Technologies R&D Program

摘要: 针对企业面向服务体系架构(SOA)环境中非实时服务的重复请求问题,提出一种基于简单对象访问协议(SOAP)扩展的服务响应缓存策略,并在企业服务总线(ESB)上进行了实现,通过将服务响应缓存起来用于应答一定时间内的相同请求,以提高对于这些请求的响应速度。该策略能同时处理普通SOAP响应和带附件SOAP响应,并对SOAP附件设置了防重复缓存机制。在对两个实际服务的测试中,其服务响应时间与采用缓存策略前相比分别缩短了38%和22%,证明了该缓存策略的有效性。

关键词: 面向服务体系架构, 企业服务总线, 简单对象访问协议, XML二进制优化打包, 缓存

Abstract: Concerning the repetitive requests to non-real time services in the Service Oriented Architecture (SOA), the authors proposed a response caching strategy based on the extension of Simple Object Access Protocol (SOAP) and XML-binary Optimized Packaging (XOP) and implemented it in Enterprise Service Bus (ESB), which cached the service responses for replying the same requests within a certain period of time in order to accelerate the response to these requests. This strategy can be applied to the general SOAP responses and that with attachments, and it also sets a mechanism to prevent the duplicate caching of the same attachments. For the two services been tested, the response time to the same request is shortened by 38% and 22% with the use of the response caching strategy.

Key words: Service Oriented Architecture (SOA), Enterprise Service Bus (ESB), Simple Object Access Protocol (SOAP), XML-binary Optimized Packaging (XOP), caching