【24h】

Compensation by design

机译:设计补偿

获取原文
       

摘要

The current dominance of the service-based paradigm reflects the success of specific design and architectural principles embodied in terms like SOA and REST. This paper suggests further principles for the design of services exhibiting long-running transactions (that is, transactions whose characteristic feature is that in the case of failure not all system states can be automatically restored: system compensation is required). The principles are expressed at the level of scope-based compensation and fault handling, and ensure the consistency of data critical to the business logic. They do so by demanding (a) either the commitment of all of the transaction or none of it, and (b) that compensation is assured in case of failure in 'parent' transactions. The notion of scope is captured algebraically (rather than semantically) in order to express design guidelines which ensure that a given transaction satisfies those principles. Transactional processes are constructed by parallel composition of services, and transactions with scopes in a single service are dealt with as a special case. The system semantics is formalised as a transition system (in Z) and the principles are expressed as formulae in linear temporal logic over runs of the transition system. That facilitates the model checking (using SAL) of their bounded versions. Two simple examples are used throughout to illustrate definitions and finally to demonstrate the approach.
机译:基于服务的范例的当前优势反映了以SOA和REST之类的术语体现的特定设计和体系结构原理的成功。本文提出了用于设计具有长期事务处理(即,其特征是在故障情况下不能自动恢复所有系统状态的系统事务的事务的事务:需要系统补偿)的进一步设计原则。这些原则在基于范围的补偿和故障处理级别上表达,并确保对业务逻辑至关重要的数据的一致性。他们这样做是通过要求(a)全部交易的承诺或全部都不承诺,以及(b)在“母公司”交易失败的情况下保证赔偿。范围的概念是通过代数方式(而不是语义方式)捕获的,以表达设计准则,以确保给定事务满足这些原则。事务处理是通过并行组合服务来构造的,并且在单个服务中具有范围的事务将作为特殊情况处理。系统语义被形式化为过渡系统(以Z表示),并且原理在过渡系统的运行过程中以线性时间逻辑形式表示为公式。这有助于对其有界版本进行模型检查(使用SAL)。全文使用两个简单的示例来说明定义,并最终演示该方法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号