To explain microservices architecture in coming posts I am going to create a very basic shopping cart. This is very simple set up with shopping cart service which interact with product service to get product details.
Get the initial project
I have provided necessary postman collection to test the project.
Just to brush up, let's see how easy it to create a microservice with modern Java tech stack.
- Navigate to https://start.spring.io/
- Select Web, Actuator, JPA, H2, Lombok dependencies.
- Generate the project.
- Import the project into preferred IDE.
- Run the application.
That is within few minutes we have a running skeleton.