question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reusing Channel for HealthChecks

See original GitHub issue

We are working on a microservice backend that mainly uses gRPC for communication. For health-checking we rely on the gRPC HealthCheck protocol and thus many of our services implement two gRPC services: one for the business functions and one for the health-checks.

Health-checking - in our setting - implies that also all consumed services are checked, too. I.e. service A consumes service B. So A’s health-check requires to invoke service B’s Check method.

Before switching to AspNetCore and grpc-dotnet we reused the ‘Channel’ or ‘CallInvoker’ instance, respectively for the two clients of Service B and the HealthClient. In AspNetCore we, so far, failed to resemble this reuse behavior. Is there any way to re-use the channel used for one client within another client?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JamesNKcommented, Oct 13, 2022

No. Each client type has its own channel. Don’t use the gRPC client factory if you need exact control.

1reaction
JamesNKcommented, Oct 13, 2022

A GrpcChannel can be reused with different client types.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance best practices with gRPC
This document explains how to get the best performance possible from gRPC. Reuse gRPC channels. A gRPC channel should be reused when making...
Read more >
The Best Way to Add Health Checks in Any .NET App - YouTube
Workshops: https://bit.ly/nickworkshops Give health checks a star on GitHub: https://github.com/Xabaril/AspNetCore. ... Go to channel ...
Read more >
Healthchecks Walkthrough - Selfhosting E10 - YouTube
A walkthrough of the healthchecks monitoring system for ensuring your scripts and services are running properly. I also briefly talk about ...
Read more >
ASP.NET Core Health Checks Explained - elmah.io Blog
Get the full overview of how to implement health checks with ASP. ... the task of writing reusable health checks for all sorts...
Read more >
Cache Channel Service - Health Monitoring Response?
I am wondering what will be the best way to monitor Tridion Cache Channel Service (CCS) for functional health checks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found