Skip to content

Instantly share code, notes, and snippets.

Avatar

wai chee yau waichee

  • Melbourne, Australia
View GitHub Profile
@mishriky
mishriky / ResilientClientSamples.scala
Created Feb 7, 2017
Samples for Finagle Client Configuration
View ResilientClientSamples.scala
/**
* This is not meant to cover ALL possible ways of creating service clients; instead it focuses on the simplest way to
* do so, while maintaining the capability to customize the clients based on service level agreements/expectations
*
* @note Most of the filters can be applied to the HTTP client as well but have been omitted from the sample code to improve
* readability
*/
trait ClientSamples extends LazyLogging {
private[this] lazy val config = ConfigFactory.load()