0

I am looking for a way to send Redis writes from one particular client to two Redis servers running on different hosts.

This isn't quite replication, if writes come in from any other client I do not want those to be replicated. e.g. writes from producers go to redis1 & redis2. writes from consumer1 & consumer2 (really, deletes) should only modify redis1 & redis2, respectively

              /----> redis1 <-- consumer1
producer --->
              \----> redis2 <-- consumer2

Thanks!

OneSolitaryNoob
  • 5,423
  • 3
  • 25
  • 43
  • what stops you from explicitly writing to two redis instances from your producer? – akonsu Apr 29 '13 at 05:57
  • thanks. someone else owns the piece of code that connects to redis and sends commands to it -- hasn't had the bandwidth to do what you describe else it's a good idea. i'm looking for a proxy of sorts that i could just change configuration to point at (that's less in-depth than actually getting the java code and building it, etc) – OneSolitaryNoob Apr 29 '13 at 07:09
  • if you cannot change the code at all, then I cannot think of any solution other than writing a redis mock service that mimics redis and sends commands to a real instance. – akonsu Apr 29 '13 at 12:28
  • Use the "Answer your question" button so I can select your answer? – OneSolitaryNoob Jun 20 '13 at 05:30

1 Answers1

0

If you cannot change the code at all, then I cannot think of any solution other than writing a service that mimics Redis and sends commands to real instances.

This project can be useful: https://github.com/causes/mock_redis

akonsu
  • 28,824
  • 33
  • 119
  • 194