linkedin / rest.li

Rest.li is a REST+JSON framework for building robust, scalable service architectures using dynamic discovery and simple asynchronous APIs.
rest.li
Other
2.51k stars 546 forks source link

Add connection warmup handler #779

Closed shangchengying closed 2 years ago

shangchengying commented 2 years ago

Add a handler for handling warm up connections to peer clusters after watchers are established.

Since establishing connections can be expensive and all the clients need to connect to hosts in the downstream's peer clusters, by pre-establishing the connections, we can avoid the thundering herd effect of all clients trying to connect at the same time.