camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Cosentino (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-11114) Create cache DSL
Date Fri, 08 Sep 2017 11:10:00 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-11114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrea Cosentino updated CAMEL-11114:
-------------------------------------
    Fix Version/s:     (was: 2.20.0)
                   2.21.0

> Create cache DSL
> ----------------
>
>                 Key: CAMEL-11114
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11114
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Nicola Ferraro
>             Fix For: 2.21.0
>
>
> We should evaluate adding a new "cache" dsl that can be used with all cache components
in Camel. A default implementation may use also caffeine, included in camel-core.
> A possible usage example may be:
> {code}
> from("xxx")
> .cache().on("${header.yyy}").ttl(600000) // caches the body
>   .to("http4://a-service-that-makes-me-pay-for-each-request.com/api/expensive-endpoint")
>   .transform().zzz()
>   .to("http4://or-a-service-that-i-can-call-few-times-a-day.com/api/limited-endpoint")
>   .unmarshal()
> .endCache()
> {code}
> It should be also useful to protect internal services when using Camel e.g. as a api-gateway
(almost what hystrix does in case of failure of the target host).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message