Do we have any plans to support the ability to make remote calls between cluster nodes.
A potentially useful scenario is that I have a large data structure, and I want to split it into different redis nodes in the cluster according to certain rules, so that I can use memory resources more evenly.
When a request needs to obtain these data, the redis node that processes the request do the scatter/gather (equivalent to a proxy), and it can use remote calls to obtain data from other nodes, and then respond to the client after aggregation.
Currently, the redis module can send messages to other nodes using RedisModule_SendClusterMessage and receive messages using RedisModule_RegisterClusterMessageReceiver. But I don't think this can meet my needs, because RedisModule_SendClusterMessage is more like a one-way message, and my scenario requires a synchronous return value.
Maybe RedisModule_ClusterRemoteCall(RedisModuleCtx *ctx, const char *target_id, const char *cmdname, const char *fmt, ...)is better for me.
Comment From: zuiderkwast
Can you add "module" in the title? e.g. "Allow modules to make remote calls between cluster nodes"
Comment From: chenyang8094
Can you add "module" in the title? e.g. "Allow modules to make remote calls between cluster nodes"
Changed.