Introducing super basic health check for cart service (#44)
* Introducing super basic health check for cart service - Generated C# proto implementation for grpc health check - Moved all C# protos to a dedicated folder - Implemented basic health checking to ping CartStore (which is Redis in default implementation) - Base plumbing for health checks * Introducing super basic health check for cart service - Generated C# proto implementation for grpc health check - Moved all C# protos to a dedicated folder - Implemented basic health checking to ping CartStore (which is Redis in default implementation) - Base plumbing for health checks * Changing Ping health probe to call Redis Cache Ping method
This commit is contained in:
parent
1bab006af1
commit
1f60819dee
9 changed files with 770 additions and 895 deletions
|
@ -56,7 +56,14 @@ namespace cartservice
|
|||
Console.WriteLine($"Trying to start a grpc server at {host}:{port}");
|
||||
Server server = new Server
|
||||
{
|
||||
Services = { Hipstershop.CartService.BindService(new CartServiceImpl(cartStore)) },
|
||||
Services =
|
||||
{
|
||||
// Cart Service Endpoint
|
||||
Hipstershop.CartService.BindService(new CartServiceImpl(cartStore)),
|
||||
|
||||
// Health Endpoint
|
||||
Grpc.Health.V1.Health.BindService(new HealthImpl(cartStore))
|
||||
},
|
||||
Ports = { new ServerPort(host, port, ServerCredentials.Insecure) }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue