Skip to content

Instantly share code, notes, and snippets.

@sebs
Created April 25, 2013 18:12
Show Gist options
  • Save sebs/5461833 to your computer and use it in GitHub Desktop.
Save sebs/5461833 to your computer and use it in GitHub Desktop.
This is how a CMS should store documents and communicate with the client, through a connection.
title Messages
client-->server: save doc
server->client: uuid
client-->server: subscribe to uuid
server-->message queue: vaildation msg
opt if validation ok
server-->message queue: workflow msg
end
opt if workfow and validation ok
server->storage: save
storage-->message queue: save msg
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment