[erlang-questions] Replicated messaging in Erlang?
Sat Jul 28 16:03:26 CEST 2012
Adam, please take some time to walk through the rabbitmq documentation - there's quite a lot of it! Rabbit supports replication using HA (master/slave mirror) queues, or federation for replicating over the WAN/Internet. This does exactly what you've asked for.
If you'd like to understand how it works, take a lot at gm.erl (guaranteed multicast) which is a fully asynchronous ring protocol developed independently at rabbit to support HA.
On 27 Jul 2012, at 19:27, Adam Warski <> wrote:
> Thank you for the answer,
> On 27 lip 2012, at 13:24, CGS <> wrote:
>> Hi Adam,
>> If I understood correctly your question, there are two points there:
>> 1. how you can replicate a message;
>> 2. how you can be sure that the message is received.
>> If that is the case, here are few simple answers (hopefully, more skilled Erlang users will come with better ideas/solutions):
>> 1. Take a look at gproc or any equivalent implementation.
> Thanks, looks quite big, but I'll try to dig through it. Though it's not only replicating the message, it's also consuming the message across the cluster once it is consumed on the master node, etc.
> Adam Warski
> erlang-questions mailing list
More information about the erlang-questions