Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11114

Create cache DSL

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.x
    • Component/s: camel-core, eip
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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:

      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()
      

      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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nferraro Nicola Ferraro
                Reporter:
                nferraro Nicola Ferraro
              • Votes:
                4 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: