gRPC and clean architecture - Where to place proto files

1.2k Views Asked by At

I'm using grpc in the asp.net project with clean architecture, where should I put proto files and grpc services which layer, and which folder

enter image description here

1

There are 1 best solutions below

0
plainionist On BEST ANSWER

When taking Clean Architecture (from Uncle Bob) very strict gRPC should be considered as a "framework" (technical detail) and so all code depending on it (including proto files) should be outside the domain/application layer and in the outer most layer.