Grpc question

when making grpc services my web api has to reference another api, but doesnt it break clean architecture?
2 Replies
HtmlCompiler
HtmlCompiler5mo ago
if you are using only the models or a client package it's fine
blueberriesiftheywerecats
for examle i have a GreeterService in one web api and have to call from another
public class GreeterService : Greeter.GreeterBase
{
public override Task<HelloReply> SayHello(HelloRequest request, ServerCallContext context)
{
return Task.FromResult(new HelloReply
{
Message = "Hello " + request.Name
});
}
}
public class GreeterService : Greeter.GreeterBase
{
public override Task<HelloReply> SayHello(HelloRequest request, ServerCallContext context)
{
return Task.FromResult(new HelloReply
{
Message = "Hello " + request.Name
});
}
}
ahh, nvm
Want results from more Discord servers?
Add your server