Fault Tolerance For Main-Memory Applications In The Cloud