Basic setup

We'll create two modules, grpc-server-service and grpc-client-service, in the multi-module maven project. We'll just add the maven-compiler-plugin plugin. Then, we'll create two directories for both server and client services. Both services would have the Maven-based directory structure, as shown in the following code:

Directory Structure of new project (../Chapter10/)├───pom.xml├───grpc-client-service│   ├───src│   │   ├───main│   │   │   ├───java│   │   │   │   └───com│   │   │   │       └───packtpub│   │   │   │           └───mmj│   │   │   │               └───grpc│   │   │   │                   └───client│   │   │   └───resources│   │   └───test│   │       └───java│   └───pom.xml└───grpc-server-service    ├───src    │   ├───main    │   │   ├───java    │   │   │     └───com    │   │   │         └───packtpub    │   │   │             └───mmj    │   │   │                 └───grpc    │   │   │                     └───server    │   │   │                         └───services │ ...

Get Mastering Microservices with Java - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.