Erlang pub sub with supply-demand channels