You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ratis.apache.org by Asad Awadia <as...@gmail.com> on 2021/11/20 04:30:24 UTC
Raft client thread safety
Hello,
Is the raft client thread safe?
Is the general expectation that the objects exposed by this library thread safe?
Thanks again,
Asad
Re: Raft client thread safety
Posted by Tsz Wo Sze <sz...@gmail.com>.
Hi Asad,
No. For efficiency, RaftClient is not thread-safe.
No. Objects provided by Ratis in general are thread-compatible but not
thread-safe, unless it is specified in the javadoc. Of course, immutable
objects are thread safe.
You are welcome.
Tsz-Wo
On Sat, Nov 20, 2021 at 12:30 PM Asad Awadia <as...@gmail.com> wrote:
> Hello,
>
> Is the raft client thread safe?
>
> Is the general expectation that the objects exposed by this library thread
> safe?
>
> Thanks again,
>
> Asad
>