huntlabs / grpc-dlang

Grpc for D programming language, hunt-http library based.
Apache License 2.0
44 stars 6 forks source link

Decopoul service class / interface generation from Server/Client implementation #32

Open baryluk opened 2 years ago

baryluk commented 2 years ago

This project is nice, but it does two things at the same time:

1) Generate classes / interfaces to implement defined service / methods. 2) Implements transport, channels, server and client, error handling, framing, etc.

I think these two things should be decoupled, so alternative implementations of 2) can be used without changing 1). Using 2) forces ones to use a specific implementation details, i.e. logging, configuration, threading and memory management model, overload protection methods on server, load balancing methods on client, use other hunt dependencies, etc.