Implementing atomic transactions using data stores

You could start with 2 calls, and if either one fails, revert and rollback the one which went through.