-
Notifications
You must be signed in to change notification settings - Fork 2
RPC
刘禄恒 edited this page Mar 17, 2018
·
1 revision
Communication use npl_mod/Raft/Rpc.lua
,
-
RaftRequestRPC
is used in Raft level, seeRpcListener:startListening
andPeerServer:SendRequest
. -
RTDBRequestRPC
in TableDB level, seeRaftTableDBStateMachine:start
,RaftClient:tryCurrentLeader
,RaftTableDBStateMachine:start2
andsetupRPC
in RaftSqliteStore.
They are both used in a Full Duplex
way, that is, they are not only used to send request but also recv response, each side need to install the RPC.
for normal tabledb ops, RTDBRequestRPC send RaftMessageType.ClientRequest
to the server.
refer to kudu design doc