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.
Overview of order management services built in the course
From the course: Building Java Microservices with gRPC
Overview of order management services built in the course
- [Instructor] This module will focus on building the user service in Java using gRPC. Let's first take a look at the overview of the services that we will be developing as a part of this course. We'll first code a user service that takes in user name as an input and the service will try to retrieve the user details, which are User ID, Username, Name, Age, and Gender. We will then develop an order service, which takes in a user ID and gets us the orders for that user ID. The details of the order could be Order ID, the User ID to which the order belongs to, the Amount, the No. of items in the order, and the Date of the Order. We will then connect the user and the order service by means of a gRPC call. How do we do that? The User ID that we got from the user details will be fed to the order service using a gRPC call, and then subsequently the order service will get us the orders of the user. Both of these services, that…
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.
Contents
-
-
-
-
-
Overview of order management services built in the course4m 51s
-
Create a maven-gRPC project4m 21s
-
Define user.proto and generate service stubs4m 42s
-
Database code setup4m 27s
-
Add database method to get user details7m 37s
-
Implement service stub7m 30s
-
Write code to host the user service8m 55s
-
Test the user service6m 13s
-
-
-