From the course: Building Java Microservices with gRPC

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Challenge: Implement add-to-cart use case

Challenge: Implement add-to-cart use case

From the course: Building Java Microservices with gRPC

Start my 1-month free trial

Challenge: Implement add-to-cart use case

(upbeat music) - [Lecturer] Let us take a look at the challenge that you will implement as a part of this course. You can build a pair of shopping cart services. The first step will be to create a product service, which will help you get all the product details. So you have a product service, which takes in input as the ID of the product and the output will be the product details like the ID, name, quantity. You can also add other fields like for example the name of the seller who sells that product, the country from where it is shipped, et cetera. Once the service is in place, the next step will be to create an add to cart service. This service will check if the selected product exists and then adds the product to the cart. So what are the semantics of this? There is an add to cart service, which takes two inputs, an ID of the product and the quantity of the product. With this input, the add to cart service will…

Contents