is client thread-safe in Twitter Finagle

403 Views Asked by At

Is the the client in Twitter Finagle thread-safe ? I don't want to call newClient in each RPC function (I think it will make a new connection to destination end, is it?) So it seems that re-using the same client object is a good choice. But, because the RPC functions may be called by diff threads at the same time, is it safe to use the same Finagle client object ?

1

There are 1 best solutions below

1
On BEST ANSWER

This is client-specific. All clients exported by Finagle are thread-safe, but your own clients may not be if you don't design them to be.