Permalink
Newer
Older
100644 46 lines (28 sloc) 1.54 KB
@videlalvaro
Apr 30, 2011
1
# AMQP Messaging Patterns #
2
@videlalvaro
Apr 30, 2011
3
This library has sample implementations of some of the patterns presented in the book [Enterprise Integration Patterns](http://www.eaipatterns.com/).
4
5
The implementations are in Erlang using the [rabbitmq-erlang-client](http://www.rabbitmq.com/erlang-client-user-guide.html).
6
7
To try these patterns you need a running RabbitMQ server.
8
9
The patterns implemented so far are:
10
11
- Consumer: `amqp_consumer.erl`
12
- Control Bus: `amqp_control_bus.erl`
13
- Detour: `amqp_detour.erl`
14
- Smart Proxy: `amqp_smart_proxy.er`
15
- Wire Tap: `amqp_wiretap.erl`
16
17
To use these consumers/producers we have to understand the concept of "Control Enabled Endpoints" as explained in this blog post: [An Army of Zombie Minions for RabbitMQ](http://videlalvaro.github.com/2011/04/an-army-of-minions-for-rabbitmq.html).
18
@videlalvaro
Apr 30, 2011
19
## Building: ##
20
21
This library requires [rebar](https://github.com/basho/rebar) to be installed.
22
23
Get the source code:
24
25
$ git clone git://github.com/videlalvaro/rmq_patterns.git
26
27
Prepare the dependencies:
28
29
$ cd rmq_patterns
30
$ mkdir deps
31
$ wget http://www.rabbitmq.com/releases/plugins/v2.4.1/amqp_client-2.4.1.ez
32
$ wget http://www.rabbitmq.com/releases/plugins/v2.4.1/rabbit_common-2.4.1.ez
33
$ unzip -d deps amqp_client-2.4.1.ez
34
$ unzip -d deps rabbit_common-2.4.1.ez
35
36
Compile the source code:
37
38
$ rebar compile
39
40
## Usage: ##
41
42
Follow along this blog post [An Army of Zombie Minions for RabbitMQ](http://videlalvaro.github.com/2011/04/an-army-of-minions-for-rabbitmq.html) to see the sample usage.
43
44
## License ##
45
46
See LICENSE.md