camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yves De Moor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5539) Circuit Breaker EIP
Date Mon, 27 Oct 2014 10:06:34 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185021#comment-14185021
] 

Yves De Moor commented on CAMEL-5539:
-------------------------------------

I would suggest two changes in the current implementation :

1. Ability to call a route when the the circuit is open and not only when it is closed (to
allow for instance to go further with a degraded mode, or to return a functional error, ...).
The source code currently add a RejectedExecutionException to the exchange. 
I don't know if this is a camel expected behaviour as it is usually thrown to reject the execution
when camel is shutting down.

2. If change 1 is accepted, we could set the number of failure in the exchange so we could
for instance react the first time the circuit is open (write to the log, send an alert, or
whatever else)

What are your opinion ?

> Circuit Breaker EIP
> -------------------
>
>                 Key: CAMEL-5539
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5539
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core, eip
>            Reporter: Claus Ibsen
>            Assignee: Raúl Kripalani
>             Fix For: Future
>
>         Attachments: CAMEL-5539-output-82ef800.txt, CAMEL-5539-output.txt
>
>
> Look at add the circuit breaker EIP to the Camel DSL.
> http://davybrion.com/blog/2008/05/the-circuit-breaker/
> Would need some thoughts for that though. Either as an explicit in the DSL. Or as a interceptor
for sending to an endpoint. As explicit its a kind to the load balancer (in fact it may be
extended upon that). Either the LB selects the intended target, or it select the breaker,
which rejects executing the message.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message