I originally posted this article on the Trello engineering blog. I'm reposting it here for posterity. Going offline meant using our database for all immediate changes to the client. But obviously we later want to sync those changes with the server. The basic idea behind our sync is to store