Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
HI,

It replicates the objects to both configured nodes. So you can read the cached value on all nodes even if it was added through the memcached on the other node.

In the normal memcached there is a constant hash algorithm so you will hit the correct server (SERVER1) when reading a previously set value. When this server goes down I assume you just "cache-miss" and get your data directly from the database and then cache it on another memcached node (SERVER2).

I would assume REPCACHED would give some kind of HA. I configured both servers (SERVER1 & SERVER2) with REPCACHED. Now I need to set the object to SERVER1. Same object will replicated to SERVER2.
My question is if data is not found in SERVER1 then after i need to access from the SERVER2 using REPCACHED api.

See the below diagram for more clarification.
1. Whenever CLIENT makes write a request to SERVER1 and then REPCACHED will do automatically data write to SERVER2.


2. Whenever CLIENT makes read a request from SERVER1, IF data not found in SERVER1 then get from the SERVER2 and then response sent to the CLIENT.



3. I was done with write in SERVER1 and SERVER2. But I am not able to get when I am using READ from the SERVER1. (See the 2 point).This is my concern it possible to using REPCACHED.
Software : Memcached and Repcached.

Thanks in advance!

Regards,
Sekhar.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900