摘要
H·Garcia-Molina等人提出了用于解决长事务问题的Sagas模型,但Sagas模型的事务补偿过程会撤销整个长事务,另外模型要求长事务的每个子事务都必须具有补偿子事务,这两个缺陷大大影响了Sagas模型的执行效率和适用性。本文通过利用任务间的依赖关系以及对事务进行分类的方法,在Sagas的基础上实现了一个部分补偿的工作流事务模型,对于不同类型的事务执行不同的补偿策略,同时即使撤销子事务也仅撤销该子事务所对应的依赖事务,而不是撤销整个事务流程。
H. Garcia - Molina raised the sagas model to solve long Transaction problem, but in sagas transaction model compensate process will compensate the whole long transaction: in addition in the model every sub - transaction must have a compensate sub - transaction,these two deficiencies greatly affected Sagas model of efficiency and applicability. This paper though Analyzing the task dependent relationship and classifying the transactions , enforce different compensation strategies for different types of transactions. While even compensating one of sub - transaction , only compensate the dependent sub - transaction , not compensate the whole long transaction.
出处
《微计算机应用》
2008年第3期75-79,共5页
Microcomputer Applications
基金
江苏省产业信息化重点基金资助项目项目编号:1633000004
关键词
工作流
Sagas事务模型
补偿事务
任务依赖
Work Flow, Sagas Transaction Model, Compensate Transaction, Task Dependencies