grpc-by-example-java icon indicating copy to clipboard operation
grpc-by-example-java copied to clipboard

Is it common/good practice to reference server in client?

Open LeiYangGH opened this issue 3 years ago • 0 comments

In multiple projects, the client pom.xml uses

        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>*-grpc-server</artifactId>
            <version>${project.version}</version>
        </dependency>

I know this way the client can reuse the generated grpc classes. But beside this way, are there any better ways, for example, server and client both reference same proto file, and use plugin to generated their own classes?

LeiYangGH avatar Dec 31 '21 04:12 LeiYangGH