zeromq at oredev 2013
DESCRIPTION
Slides from the talk. The code is available at https://github.com/ashic/0MQOredev2013TRANSCRIPT
ZeroMQA Whole Bunch of
Awesome[C# Edition]
Ashic Mahtab@ashic
http://www.heartysoft.com [email protected]
About me• Do tech stuff. Play about with distributed, scalable systems.
Messaging. DDD. CQRS. Event Sourcing. • Mainly .NET. Like F#, Haskell, Erlang, CSP, maybe even Scala…Ooh
look…shiny!!• ASP.NET MVP since 2009, moderator of asp.net
• Oh yeah, and ZeroMQ. • London ZeroMQ User Group [ZeroMQLondon]• Lifelong student…(Where does this learning s@$£ end!!)
Code: https://github.com/ashic/0MQOredev2013
Messaging
Message Queues
ZeroMQ
Contexts - Sockets
Show Me Ze Codez
Client - Server• Single Server – Multi Client• Synchronous Server (blech!)• Messages get “queued”
Client Server1. Request
2. Response
Pub - Sub• Topic Based Pub Sub• Binary prefix based subscriptions• Typical pub-sub problems apply
To Ze Cloudzzzz• Use Push Pull• Source enqueues tasks• Workers work• Results are collected in Drain
Source
Worker
Drain
WorkerWorker
Multi Server, Multi Client• What it says on the tin
Client Client Client
Worker Worker
Broker
Benefits
Drawbacks
Questions?
Thank You.