From the course: Building Java Microservices with gRPC
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Test the full flow of order management
From the course: Building Java Microservices with gRPC
Test the full flow of order management
- [Instructor] The last bit of this demo will be to test the entire flow. So we will start the user and the order servers on ports five, zero, zero, five, one, and five, zero, zero, five two respectively. Thereafter, we will call the user service using the BloomRPC client. And when the user service gets invoked, it'll internally call the order service through that order client that we created. Once the call gets completed, then the user response should show us that additional field of number of orders, along with the other user details. Before we do that, let's add few log statements in all our classes so we can trace the flow of the request and the response. So to begin with, we are already in the UserServiceImpl class. So let's go down and the extracted method that we have out of the refactoring that we did. Inside that let us add one log statement. We'll say log.info. And what are we trying to do here? Creating a…
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
-
-
-
-
-
-
(Locked)
Define order.proto and generate stubs6m 10s
-
(Locked)
Add database method to get orders8m 17s
-
(Locked)
Add service method to get order details6m 47s
-
(Locked)
Write code to host order service3m 48s
-
(Locked)
Test the order service using the client2m 57s
-
(Locked)
Recap to connect user and order services1m 50s
-
(Locked)
Write a client to call order service5m 14s
-
(Locked)
Call order client from user service7m 44s
-
(Locked)
Test the full flow of order management6m 43s
-
(Locked)
Challenge: Implement add-to-cart use case1m 33s
-
(Locked)
-