antirez / disque

Disque is a distributed message broker
BSD 3-Clause "New" or "Revised" License
8.01k stars 538 forks source link

Cross Data Center support #189

Open mohkar opened 8 years ago

mohkar commented 8 years ago

Hi antirez,

I would like to know if disque supports cross data center support

mathieulongtin commented 8 years ago

It does, as long as the different disque instances can talk to each other. But you can't control which instance get a replication, so there would be scenarios where there is no warranty that a job is replicated to two separate DC.

vaizki commented 7 years ago

Adding some bits of information I learned when doing PR #200 for eventual replication (as my use case is 2x DC each with 1x Disque and a bit of latency between the DCs) and what I changed in that PR.

Assuming a RTT of 100ms between the DCs:

This is why PR #200 and the SYNC N parameter.

Again with 100ms RTT latency:

It's not perfect (mainly because restart stops eventual replication attempts) but it works for me and hopefully someone else as well.