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 2023/07/26 07:50:00 UTC

[jira] [Commented] (CAMEL-19167) camel-oaipmh - Redesign the code to reuse the HttpClient

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

Claus Ibsen commented on CAMEL-19167:
-------------------------------------

A quick look in the code, then it looks like its OAIPMHHttpClient that creates a new client in its doRequest method, so its not as much we can improve on the Camel side.

> camel-oaipmh - Redesign the code to reuse the HttpClient
> --------------------------------------------------------
>
>                 Key: CAMEL-19167
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19167
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Nicolas Filotto
>            Priority: Minor
>
> This component should be redesigned to avoid instantiating a new {{HttpClient}} for each request because they are expensive to create. 
> See point #7 https://hc.apache.org/httpcomponents-client-5.2.x/migration-guide/preparation.html



--
This message was sent by Atlassian Jira
(v8.20.10#820010)