Search code examples
microservicesgrpcclean-architectureardalis-cleanarchitecture

gRPC and clean architecture - Where to place proto files


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


Solution

  • 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.