Hystrix

Table of Contents

Usage
Properties

Lets an application integrate with Netflix Hystrix, which can provide a circuit breaker in Camel routes

Usage

Hystrix is a latency and fault tolerance library designed to

  • Isolate points of access to remote systems, services and third-party libraries
  • Stop cascading failure
  • Enable resilience in complex distributed systems where failure is inevitable

The Hystrix pattern can be placed anywhere in the route body.

Properties

Table 38, “Hystrix Properties” describes the properties you can specify in the properties editor.

Table 38. Hystrix Properties

NameDescription

Description

Specifies a text description for the node. This description is included in the generated XML file, but it is informational only. It is not used by Apache Camel.

Hystrix Configuration Ref

Specifies the id of a shared Hystrix configuration that all Hystrix patterns in a CamelContext object can refer to.

Id

Specifies a unique identifier for the endpoint.

The tooling automatically generates an id for a node when it creates it. You can remove that id or replace it with your own. The Camel debugger requires all nodes with a breakpoint set to have a unique id.

You can use the id to refer to endpoints in your Camel XML file.