eBay / NuRaft

C++ implementation of Raft core logic as a replication library
Apache License 2.0
1.02k stars 240 forks source link

rpc_listener #520

Closed as51340 closed 4 months ago

as51340 commented 4 months ago

Could you briefly explain what are rpc_listeners used for? Cannot find anything in docs about it...

Thanks, Andi

greensky00 commented 4 months ago

@as51340 Sorry I missed this question.

The rpc_listener, which is implemented by asio_rpc_listener, acts as servers responsible for processing incoming RPC requests. Typically, the leader is a client that sends out append_entries requests, while the followers serve as listeners, essentially operating as servers.

as51340 commented 3 months ago

thanks @greensky00 !