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

Optimize - ProducerCache - Avoid creating new processor for each send if result processor

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.20.0
    • camel-core
    • None
    • Unknown

    Description

      When using producer template / producer cache and have a result processor to convert the result to X then it wraps using a set of internal processors / uow etc which creates a new objects which we can avoid.

      This was introduced by CAMEL-10308

      We can further optimise this to avoid creating a new instance of internal processor but use a shared instance. This is a hot spot as ProducerCache is used by producer template, and EIPs that sends to endpoints such as to and toD etc.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment