From the course: Building Java Microservices with gRPC
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Service definition using protobuffs
From the course: Building Java Microservices with gRPC
Service definition using protobuffs
- [Instructor] Now that we have all the utilities downloaded and the setup is complete. The next part of this demo is to write the service definition. The steps have been listed on the screen. Let's go through them one by one. The first one is to create a text file with the .proto extension and give it a name. Now you can use any text editor of your choice for this demo. I am going to use sublime text editor. So let's go to that and I've opened a new file. The first thing that we'll do is let's save this file and name it employee dot proto and I'm going to save this file in the same proto folder that I used to download the utilities. So let's save this, now before we go to the next step there are a few things that we need to do at the beginning of this file. The first thing is to denote the syntax of protobufs that we intend to use that is denoted by the syntax statement. So it looks like this. We say syntax…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.