Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some issues with the service API #119

Open
qligier opened this issue Apr 30, 2024 · 3 comments
Open

Some issues with the service API #119

qligier opened this issue Apr 30, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@qligier
Copy link
Member

qligier commented Apr 30, 2024

OWT has encountered performance issues with the service API. I had a look and found a few areas of improvement (for performance and code simplification).

In HuskyWebServiceClient, a new ProducerTemplate is created for each transaction, that is extremely expensive and inefficient. Per Camel's documentation, a single instance should be (lazily) created, kept and shared for the entire life of the application (or at least the entire life of the HuskyWebServiceClient instance).

In HuskyWebServiceClient, there's no need to manually set the Accept and Content-Type headers, Camel will take care of it.

In HuskyWebServiceClient, some transactions are needlessly marshalled/unmarshalled (e.g. ITI-44), Camel will also take care of it.

In HuskyWebServiceClient, we should not set the interceptor if we are not in debug mode.

In HuskyWebServiceClient, the AuditContext is required in the constructor but isn't used; a different AuditContext may be used by IPF (depending on it that CamelContext is the same that was registered as a bean or not).

I'm not sure why we need to manually create an instance of HuskyWebServiceClient, HuskyService could do it by itself.

@qligier qligier added the enhancement New feature or request label Apr 30, 2024
@msmock
Copy link
Collaborator

msmock commented Aug 7, 2024

We are aware of problems with the convenience api and therefore switched to the service api. I'm sorry but I can help on issues with the service api, but not with the convenience api, which should be deleted from my point of view.

@msmock msmock closed this as completed Aug 7, 2024
@qligier qligier reopened this Aug 8, 2024
@qligier
Copy link
Member Author

qligier commented Aug 8, 2024

@msmock Sorry, the HuskyWebServiceClient is the new service API, not the old convenience API

@qligier qligier changed the title Some issues with the convenience API Some issues with the service API Aug 8, 2024
@msmock
Copy link
Collaborator

msmock commented Aug 13, 2024

Dear Quentin, if you know all the solutions to the problems, I suggest you to do the changes, at least if the changes are as simple as it sounds. Ok, for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants