2. What ?
• https://github.com/Netflix/Hystrix
• Hystrix is a latency and fault tolerance library
designed to isolate points of access to remote
systems, services and 3rd party libraries, stop
cascading failure and enable resilience in
complex distributed systems where failure is
inevitable.
11. Command Group
• Group together commands such as for
reporting, alerting, dashboards, or team/library
ownership.
• By default Hystrix group key to define the
command thread-pool unless a separate one is
defined.
18. Request Collapsing
(defcollapser search
"Collapsing single-term search command"
(collapse [arg-lists]
; Create a multi-search command, passing individual terms as a seq of args
(instantiate multi-search (map first arg-lists)))
(map [arg-lists batch-result]
; Map from input args to results. Here we assume order is preserve by
; multi-search so we can return the result list directly
batch-result))
(search “Something1”)
(search “Something2")
19. Circuit Breaker
• Tripping a circuit-breaker to stop all requests to
a particular service for a period of time, either
manually or automatically if the error percentage
for the service passes a threshold.