/node-amqp

Simple Example Node and RabbitMQ

Primary LanguageJavaScript

RabbitMQ

  • Channel
  • Exchange
  • Route
  • Queue

Anti Pattern


+----------+      +---------+       +-------+       +---------+        +----------+
| Producer |  ==> | Channel |  ==>  | Queue |  ==>  | Channel |  ==>   | Consumer |
+----------+      +---------+       +-------+       +---------+        +----------+

Correct Pattern


+----------+      +---------+       +----------+   routes    +-------+       +---------+       +----------+
| Producer |  ==> | Channel |  ==>  | Exchange |  ========>  | Queue |  ==>  | Channel |  ==>  | Consumer |
+----------+      +---------+       +----------+             +-------+       +---------+       +----------+