eBay / NuRaft

C++ implementation of Raft core logic as a replication library
Apache License 2.0
993 stars 235 forks source link

rpc_listener #520

Closed as51340 closed 1 month ago

as51340 commented 1 month ago

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

Thanks, Andi

greensky00 commented 1 month 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 4 weeks ago

thanks @greensky00 !