Hi,

I'm trying to write a replicated map based on Ratis.

One thing that blocks me here is that I'm trying to implement something
like "watch a key". While Ratis support basic RPC between server and
client, it's a one-shot RPC call. I have two ideas here but both seems not
easy to implement:

1. Take the client connection and send back key changes even if the client
doesn't round-robin query it. However, the Rpc details in under
encapsulation and never intend to be used.
2. Wrapper an RMap server over the Ratis server. However, in this case,
It's the RMap server that should be responsible for initiating and managing
the connection. Ratis server encapsulates this detail and the only way I
can imagine is the RMap server as a proxy, but it's quite clumsy to have
one more hop.

Looking forward to your ideas.

Best,
tison.

Reply via email to