Skip to content

Conversation

@aaron-steinfeld
Copy link
Contributor

@aaron-steinfeld aaron-steinfeld commented Jul 27, 2022

Description

Similar to previously added grpc framework, a small wrapper around existing code to allow composing one or more services, and generally make server building simpler.

Testing

Ran integration tests with a service running on this implementation

Example service using new framework: hypertrace/hypertrace-core-graphql#105

@github-actions

This comment has been minimized.

@codecov
Copy link

codecov bot commented Jul 27, 2022

Codecov Report

Merging #50 (17c3d15) into main (732e53b) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main      #50   +/-   ##
=========================================
  Coverage     69.08%   69.08%           
  Complexity      106      106           
=========================================
  Files            15       15           
  Lines           566      566           
  Branches         33       33           
=========================================
  Hits            391      391           
  Misses          155      155           
  Partials         20       20           
Flag Coverage Δ
unit 69.08% <ø> (ø)

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

Help us with your feedback. Take ten seconds to tell us how you rate us.

@github-actions

This comment has been minimized.


@AllArgsConstructor
public class StandAloneHttpContainerEnvironment implements HttpContainerEnvironment {
@Getter private final GrpcChannelRegistry channelRegistry;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this for GRPC clients used by the HTTP server?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct, even though they're hosting HTTP (or more specifically, REST) APIs, they're still communicating downstream to GRPC services.


@Override
public boolean healthCheck() {
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nothing more in this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I resisted 😉 let's file this under the Future Work section (it's not a regression and it's still overridable - and more importantly, we didn't really have a ready replacement lined up like we did with GRPC)

@aaron-steinfeld aaron-steinfeld merged commit acdbcee into main Jul 27, 2022
@aaron-steinfeld aaron-steinfeld deleted the http branch July 27, 2022 14:04
@github-actions
Copy link

Unit Test Results

  9 files  ±0    9 suites  ±0   10s ⏱️ ±0s
31 tests ±0  31 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit acdbcee. ± Comparison against base commit 732e53b.

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