Dynamic Evolution Mechanism for Trustworthy Software Based on Service Composition

Jin Zeng, Hailong Sun, Xudong Liu, Ting Deng, Jinpeng HuaiJournal of Software 2010

Abstract: In the landscape of Service-Oriented Architecture (SOA), maintaining the trustworthiness of networked software during runtime updates is a critical challenge. This paper presents a comprehensive framework for the dynamic evolution of composite services. By defining a set of soundness-preserving evolution operations, we eliminate the need for computationally expensive formal verification during runtime. We further introduce the AvailEvo algorithm, which enhances system availability through structural redundancy, and the LiveMig algorithm, which ensures the seamless migration of active process instances. Our evaluation using the SOAREngine prototype confirms that these methods significantly improve system reliability with minimal performance overhead.

Introduction

Modern software systems are increasingly built as composite services—complex workflows that orchestrate various independent web services. As business requirements and network environments shift, these systems must evolve dynamically. However, updating a running system without causing deadlocks or state inconsistencies is notoriously difficult.

Conceptual framework for trustworthy software evolution.

The proposed framework addresses this by linking evolution goals to specific methods and operations that guarantee trustworthy results, as shown in the conceptual model above. The focus is on ensuring that the evolution process itself is as reliable as the software it produces.

The Challenge of Dynamic Evolution

Traditional approaches to software evolution often rely on formal verification (e.g., checking Petri net reachability) to ensure that a new workflow version is "sound"—meaning it will always terminate correctly without deadlocks. Unfortunately, verifying these properties is EXPSPACE-hard, making it impractical for real-time systems with thousands of concurrent users. Furthermore, migrating "in-flight" instances to a new workflow version often introduces "dynamic change bugs" if the state mapping is not handled with mathematical precision.

Methodology

Our approach relies on a "correctness-by-construction" philosophy, implemented through three core components:

Soundness-Preserving Operations

Instead of allowing arbitrary structural changes, we define a restricted set of atomic operations: Replace, Add, Delete, and Structure Adjustment. We have mathematically proven that applying these operations to a sound Workflow Net (WF-net) results in a new net that is also guaranteed to be sound.

Illustration of Parallel_add and Choice_add operations used to maintain structural integrity.

As illustrated in the figure above, the Addition operations (Parallel_add and Choice_add) allow for the expansion of a workflow while maintaining its structural properties. This bypasses the need for post-evolution verification.

The AvailEvo and LiveMig Algorithms

  1. AvailEvo Algorithm: This mechanism monitors runtime logs to identify "critical regions" where service failures frequently occur. It then uses the Choice_add or Parallel_add operations to inject redundant execution paths, effectively creating a failover mechanism that boosts the overall availability of the composite service.
  2. LiveMig Algorithm: To handle active instances during an update, LiveMig utilizes reachability graphs to map the current state of an old instance to a semantically equivalent state in the new workflow. This ensures that no steps are skipped or erroneously repeated during the transition.

Key Results and Implementation

The framework was implemented in SOAREngine, a prototype built using Aspect-Oriented Programming (AOP) to decouple evolution logic from business logic.

  • Availability Gains: In simulations, the AvailEvo algorithm improved the availability of a 40-service workflow from 15.9% to 20.4%. For smaller workflows, gains were even more pronounced (e.g., from 62.3% to 71.8%).
  • Efficiency: The LiveMig algorithm demonstrated excellent scalability, capable of migrating 1,000 concurrent instances in approximately 2 seconds, making it suitable for high-traffic production environments.

Conclusion

By shifting the burden of proof from runtime verification to the evolution operations themselves, this framework provides a practical path for maintaining trustworthy SOA systems. Future work will focus on integrating data-flow dependencies into the evolution logic and moving toward more autonomous, policy-driven evolution controls.

Summary updated

BibTeX
@article{zeng2010dynamic,
  author = {Jin Zeng and Hailong Sun and Xudong Liu and Ting Deng and Jinpeng Huai},
  title = {{Dynamic Evolution Mechanism for Trustworthy Software Based on Service Composition}},
  journal = {Journal of Software},
  year = {2010},
  doi = {10.3724/sp.j.1001.2010.03735},
}
Figure