Skip to content

Conversation

@aaron-steinfeld
Copy link
Contributor

We have various hybrid grpc/http services that have some version of this PR in their local codebase. Moving it to central location.

@aaron-steinfeld aaron-steinfeld requested a review from a team as a code owner January 6, 2025 20:47
@github-actions
Copy link

github-actions bot commented Jan 6, 2025

Test Results

32 tests  ±0   32 ✅ ±0   14s ⏱️ ±0s
 9 suites ±0    0 💤 ±0 
 9 files   ±0    0 ❌ ±0 

Results for commit 69b3162. ± Comparison against base commit eb17102.

♻️ This comment has been updated with latest results.

tim-mwangi
tim-mwangi previously approved these changes Jan 6, 2025
tim-mwangi
tim-mwangi previously approved these changes Jan 6, 2025
@codecov
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.53%. Comparing base (eb17102) to head (69b3162).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #110   +/-   ##
=========================================
  Coverage     68.53%   68.53%           
  Complexity      107      107           
=========================================
  Files            17       17           
  Lines           623      623           
  Branches         32       32           
=========================================
  Hits            427      427           
  Misses          177      177           
  Partials         19       19           
Flag Coverage Δ
unit 68.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

return List.of();
}

protected List<HybridHttpHandlerFactory> getHybridHttpHandlerFactories() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The extra interface is a variant of the existing HttpHandlerFactory that gives the construction context access to the GRPC environment as well. The handlers the factory returns are no different, but these extra arguments are only available to hybrid containers. This is typically used for an HTTP handler to then turn around and make a call to the GRPC container.

@aaron-steinfeld aaron-steinfeld merged commit 23c3062 into main Jan 7, 2025
6 checks passed
@aaron-steinfeld aaron-steinfeld deleted the hybrid-containers branch January 7, 2025 16:21
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.

3 participants