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

Test the full flow of order management

From the course: Building Java Microservices with gRPC

Start my 1-month free trial

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…

Contents