Is the LRUCache value in camel based on individual routes or is a combination of all the routes ?

Solution Verified - Updated -

Issue

  • We have a camel route which receives multiple copy of the same files. We want to forward the duplicate files as well to the customers. Earlier, we have an idempotent=true option in the routes. After we removed it, we were are able to send duplicate files, but we still see a backlog of the current files.

  • When we were having a read on the File2 component http://camel.apache.org/file2.html idempotent option, there is a description option to use the Idempotent Consumer EIP pattern to let Camel skip already processed files will by default use a memory based LRUCache that holds 1000 entries. If noop=true then idempotent will be enabled as well to avoid consuming the same files over and over again.

  • Questions:

    • Is there an option to reduce the LRUCache value to a specified lower value. eg 100 so that it can allow duplicate files to be sent?
    • Is the LRUCache value based on individual routes or is a combination of all the routes?

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Apache Camel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content