Code from my blog post on: Implementing Polyglot Persistence - Part 1