Skip to content

Move blocking execute operation to executor thread#2458

Closed
Arooba-git wants to merge 1 commit into
vert-x3:masterfrom
Arooba-git:fix-blocking-call-in-graphql-handler-impl
Closed

Move blocking execute operation to executor thread#2458
Arooba-git wants to merge 1 commit into
vert-x3:masterfrom
Arooba-git:fix-blocking-call-in-graphql-handler-impl

Conversation

@Arooba-git

Copy link
Copy Markdown

Hi 👋

Thank you for this project!

This PR fixes a blocking call in execute method of graphQL handler, as detected by BlockHound:

Screen Shot 2023-07-27 at 2 05 23 PM

We re-ran the tests and also compared the performance (in terms of latency) before and after the fix. The highest execution time of the event loop marginally reduces after the fix:

Before
vw2-lateny-before

Before
vw-latency-after

@vietj vietj requested a review from tsegismont July 27, 2023 07:00
@vietj vietj modified the milestones: 4.5.0, 5.0.0 Jul 27, 2023
@tsegismont tsegismont removed this from the 5.0.0 milestone Dec 20, 2023
@tsegismont tsegismont removed their request for review December 20, 2023 15:01
@tsegismont

Copy link
Copy Markdown
Member

Thanks for reporting this @Arooba-git

I think the problem is in GraphQL-Java implementation, it shouldn't load values from a resource bundles every time a graphql document is parsed. Instead, it should be cached.

@tsegismont tsegismont closed this Dec 20, 2023
@tsegismont

Copy link
Copy Markdown
Member

I would suggest to report a bug to GraphQL-Java project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants