Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 881
Regestea Avatar asked Oct 19 '25 15:10

Regestea


1 Answers

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.

like image 116
plainionist Avatar answered Oct 21 '25 03:10

plainionist