You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/10/15 09:05:00 UTC

[jira] [Commented] (CAMEL-15690) camel-core - Optimize direct producer

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

Claus Ibsen commented on CAMEL-15690:
-------------------------------------

Ideally we could wire together the consumer and producers during init phase but the consumers are only created/init/started when the routes are started.

So this may require for us to move creating the route consumer to an earlier phase so it can be part of built time optimizations (in general).
And then we can still defer its init/start phase to when the route is actually starting up. As a route may be set to autostartup = false, and therefore it may not make sense to do init phase if the route is never started.

> camel-core - Optimize direct producer
> -------------------------------------
>
>                 Key: CAMEL-15690
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15690
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 3.7.0
>
>
> It does a lookup of the consumer to handover the exchange on each process. We can optimize this to do this once and reuse same consumer.
> And then if the consumer is stopped/removed then we need a event listener to tell the producer that the consumer is gone and it needs to clear the state.
> This avoids the synchronized lookup on each process



--
This message was sent by Atlassian Jira
(v8.3.4#803005)