Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cowboy - RabbitMQ and websockets

Wade Mealing
September 17, 2013

Cowboy - RabbitMQ and websockets

A quick overview on how to plug together some buzzword enabled tech for your enjoyment.

Wade Mealing

September 17, 2013
Tweet

Other Decks in Technology

Transcript

  1. onMessage Handler function onMessage(e) { Msg = '<p>' + txt

    + '</p>' $('#output').prepend(Msg); };
  2. Cowboy WS websocket_handle(Data, Req, State) → {text, Msg} = Data,

    {reply, {text, << "recv: ", Msg/binary >>}, Req, State};
  3. MQ perspective Exchange Exchange “Fanout” M S G M S

    G M S G M S G M S G M S G M S G M S G M S G M S G M S G M S G
  4. Benchmarking Results: (Didn't get this done in time, sorry) 0.5

    1 1.5 2 2.5 3 3.5 4 4.5 0 2 4 6 8 10 12 Column 1 Column 2 Column 3