an advanced kafka 0.8 producer written in erlang