This application create using Lagom, Java and Cassandra Database. Here we are using embedded Cassandra to persist events and embedded kafka for publishing and subscribing between microservices.
There have two Microservices call Order microservices
and User Microservices
There have two asynchronous rest call which is Create User
and Get User
Route(Method - POST) : localhost:9000/api/user
Rawdata(json):
{
"id": "1",
"name": "Supun Kavinda",
"email": "naskavinda@gmail.com",
"userName": "naskavinda",
"Password": "abc123"
}
Route(Method - POST) : localhost:9000/api/user/:id
There have two asynchronous rest call which is Place Order
and Get Order Status
In Hear These Two microservices communicate using cross microservice call.
Route(Method - POST) : localhost:9000/api/order
Rawdata(json):
{
"id": "1",
"userId": "1",
"products": ["10","2","5"]
}
Route(Method - POST) : localhost:9000/api/order/:id
- Java 1.8
- Maven 3.5.1
mvn lagom:runAll