Re:Introduction to Microservices
by pbh101 on Thursday July 09, 2015 @06:14PM
(#9861062)
Caitie McCaffrey gave a talk on this subject at GOTO Chicago 2015 [1], refreshing the 'Saga Pattern' for a distributed environment. Short summary, IIRC:
1) Use a linearizable data store to store transaction metadata
2) Each step must have a complementary rollback step
3) Rollback steps must be idempotent. Depending on the type transaction, sometimes 'rollback' is too strong and you instead implement other types of recovery (e.g. 'roll-forward')
1) Use a linearizable data store to store transaction metadata
2) Each step must have a complementary rollback step
3) Rollback steps must be idempotent. Depending on the type transaction, sometimes 'rollback' is too strong and you instead implement other types of recovery (e.g. 'roll-forward')
[1] http://gotocon.com/chicago-2015/presentation/Applying%20the%...