Skip to content

Instantly share code, notes, and snippets.

@wmealing
Created July 16, 2013 16:00
Show Gist options
  • Save wmealing/6010054 to your computer and use it in GitHub Desktop.
Save wmealing/6010054 to your computer and use it in GitHub Desktop.
Producer/Consumer fanout.
1> producer:start_link().
=INFO REPORT==== 17-Jul-2013::01:58:59 ===
Negotiated maximums: (Channel = 0, Frame = 131072, Heartbeat = 600)
{ok,<0.36.0>}
2> consumer:start_link(dog).
consumer: init
=INFO REPORT==== 17-Jul-2013::01:59:06 ===
Negotiated maximums: (Channel = 0, Frame = 131072, Heartbeat = 600)
{ok,<0.61.0>}
3> consumer:start_link(cat).
consumer: init
=INFO REPORT==== 17-Jul-2013::01:59:09 ===
Negotiated maximums: (Channel = 0, Frame = 131072, Heartbeat = 600)
{ok,<0.76.0>}
4> producer:send_message("HI").
ok
consumer:<0.76.0> PAYLOAD: <<"HI">>
consumer:<0.61.0> PAYLOAD: <<"HI">>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment