Created
July 16, 2013 16:00
-
-
Save wmealing/6010054 to your computer and use it in GitHub Desktop.
Producer/Consumer fanout.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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