Code from my blog post: http://blog.jonharrington.org/a-simple-cep-processor-in-elixir/
Example CEP processor in Elixir