I'm trying to establish connection between client and server using grpc. I'm doing the .proto file approach. I have couple of questions on this.
I'm trying to establish connection between client and server using grpc. I'm doing the .proto file approach. I have couple of questions on this.
GRPC can run without HTTPS in ASP.NET from the server side. It can also run without TLS on the client.
In your kestrel config you can do the following to force it to run without TLS on a specific port:
builder.WebHost.UseKestrel(x =>
{
x.ListenAnyIP(18940, options =>
{
options.Protocols = HttpProtocols.Http2;
}
}
For the client according to the code in my current project, no special configuration is needed.
As for the models, the namespace should match on the .proto file. I recommend building the shared proto models in a shared class library.