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

DHIS2-18568: allow Route response timeout to be customised #19872

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

cjmamo
Copy link
Contributor

@cjmamo cjmamo commented Feb 6, 2025

  • Replaced blocking route HTTP client with non-blocking client to remove connection pool
  • Allowing route response timeout to be customised
  • Stream request and response bodies
  • Support binary payloads

perf: use non-blocking WebClient instead of RestTemplate
tolerate HTTP errors in WebClient

test: add test coverage for response timeout and HTTP errors
@cjmamo cjmamo requested review from a team February 6, 2025 12:59
@cjmamo cjmamo self-assigned this Feb 6, 2025
@cjmamo cjmamo changed the title DHIS2-18568: allow response timeout to be customised DHIS2-18568: allow Route response timeout to be customised Feb 6, 2025
use int instead of Integer for responseTimeout to remove null checks

remove redundant annotations

rename references

use `Json.object` instead handcrafting JSON in RouteService
@amcgee amcgee added the deploy Deploy DHIS2 instance with IM. label Feb 10, 2025
Copy link
Member

@amcgee amcgee left a comment

Choose a reason for hiding this comment

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

LGTM! Would be great to get one more review from the backend team

feat: support binary bodies
@cjmamo cjmamo requested review from jbee and amcgee February 11, 2025 12:16
@cjmamo cjmamo removed the deploy Deploy DHIS2 instance with IM. label Feb 11, 2025
@cjmamo cjmamo requested a review from a team February 11, 2025 13:31
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.

5 participants