Message Queues

613 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
613
On SlideShare
0
From Embeds
0
Number of Embeds
46
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Message Queues

  1. 1. Message Queues Kilian Today, duh
  2. 2. MotivationAlternativesAMQP
  3. 3. What We Need Some kind of message queueing / IPC Send data from A to B send arbitrary messages distributed Reliable Flexible Scalable Fast
  4. 4. What We Have Python Twisted XML-RPC arbitrary data: yes distributed: yep Reliable: implementation Flexible: not really ... Scalable: well ... Fast: oh ... Can we have all that, without implementing everything?
  5. 5. far too many IPC standards and implementations out therenot all are distributed D-Bus MPI Signalssome are XML-RPC (SOAP, ...) ”Sun” RPCAre any of those reliable?
  6. 6. Reliability What goes in comes out. It does come out. It does come out, even if something goes horribly wrong. If something goes horribly wrong, not everything breaks.
  7. 7. AMQP? Doesn’t look like it was designed for IPC. So what? IPC is just a special case of message passing. Does it match our needs? arbitrary messages, distributed, flexible, scalable, reliable if the implementation is not slower then the current XML-RPC, it’s fast enough Instead of searching for a IPC standard / implementation that fits our needs, search for AMQP implementation that fits our needs.
  8. 8. What is AMQP?
  9. 9. Exchanges a message is send to a exchange every message has a routing key the exchange decides, based on the routing key, where to enqueue it. fine graned configuration, how messages from A reach B direct exchange fanout topic exchange
  10. 10. Exchanges
  11. 11. Fin Fin

×