Skip to content

Implement FHIR Async Request Pattern for Direct Broker using CQL #539

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

Merged
merged 2 commits into from
Jul 2, 2025

Conversation

EmteZogaf
Copy link
Collaborator

@EmteZogaf EmteZogaf commented Jun 30, 2025

Added configuration property broker.direct.cql.useAsyncRequestPattern with default value false to support asynchronous request handling when the Direct Broker is using CQL queries. This enhancement improves performance by allowing non-blocking request processing, particularly useful for complex or long-running CQL queries.

The change is part of the broker client configuration and can be controlled via the environment variable
BROKER_CLIENT_DIRECT_CQL_USE_ASYNC_REQUEST_PATTERN when needed and defaults to false for staying compatible with deployments using HAPI based CQL-enabled FHIR servers which reject requests with unknown headers.

@EmteZogaf EmteZogaf linked an issue Jun 30, 2025 that may be closed by this pull request
@EmteZogaf EmteZogaf force-pushed the feature/530-add-async-execution-direct-broker branch 2 times, most recently from d4ec6b4 to 4890e23 Compare June 30, 2025 07:11
Copy link

codecov bot commented Jun 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.05%. Comparing base (359d300) to head (f84866e).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #539      +/-   ##
=============================================
+ Coverage      79.29%   80.05%   +0.76%     
- Complexity       690      727      +37     
=============================================
  Files            163      166       +3     
  Lines           2932     3044     +112     
  Branches         291      299       +8     
=============================================
+ Hits            2325     2437     +112     
  Misses           487      487              
  Partials         120      120              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@EmteZogaf EmteZogaf force-pushed the feature/530-add-async-execution-direct-broker branch from 4890e23 to 233cb5e Compare July 1, 2025 18:03
@EmteZogaf EmteZogaf force-pushed the feature/530-add-async-execution-direct-broker branch 3 times, most recently from 0f4a8ad to b685c05 Compare July 1, 2025 18:35
@EmteZogaf EmteZogaf requested a review from michael-82 July 1, 2025 18:49
EmteZogaf added 2 commits July 2, 2025 07:03
Added configuration property `broker.direct.cql.useAsyncRequestPattern`
with default value true to support asynchronous request handling when
the Direct Broker is using CQL queries. This enhancement improves
performance by allowing non-blocking request processing, particularly
useful for complex or long-running CQL queries.

The change is part of the broker client configuration and can be
controlled via the environment variable
`BROKER_CLIENT_DIRECT_CQL_USE_ASYNC_REQUEST_PATTERN` when needed.
Increase time interval to test timeout against.
@EmteZogaf EmteZogaf force-pushed the feature/530-add-async-execution-direct-broker branch from b685c05 to f84866e Compare July 2, 2025 05:03
@@ -88,6 +88,8 @@ app:
secret: ${BROKER_CLIENT_DIRECT_AUTH_OAUTH_CLIENT_SECRET:}
enabled: ${BROKER_CLIENT_DIRECT_ENABLED:false}
useCql: ${BROKER_CLIENT_DIRECT_USE_CQL:false}
cql:
useAsyncRequestPattern: ${BROKER_CLIENT_DIRECT_CQL_USE_ASYNC:false}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll probably move this parameter to another place in a separate issue/pr

@michael-82 michael-82 merged commit 4d2c611 into develop Jul 2, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add async execution direct broker
2 participants