Updating README.md

This commit is contained in:
Jay Ehsaniara
2021-07-01 00:21:19 -07:00
parent fb429ddeb5
commit aa0350dd86
2 changed files with 2 additions and 8 deletions

View File

@@ -57,7 +57,7 @@ you should now be able to place your order by calling the following `curl` comma
```shell
# assuming your app is listening on 8080
ORDER_UUID=$(curl --silent -H 'Content-Type: application/json' -d "{\"itemName\":\"book\"}" http://localhost:8080/order | jq -r '.orderUuid') && for i in `seq 1 15`; do echo $(curl --silent "http://localhost:8080/order/status/"$ORDER_UUID); sleep 1; done;
ORDER_UUID=$(curl --silent -H 'Content-Type: application/json' -d "{\"itemName\":\"book\"}" http://localhost:8080/order | jq -r '.orderUuid') && for i in `seq 1 15`; do sleep 1; echo $(curl --silent "http://localhost:8080/order/status/"$ORDER_UUID); done;
```
Note: make sure you have already installed the `jq`
@@ -96,7 +96,7 @@ java -Dserver.port=8082 -jar target/scs-100-2-0.0.1-SNAPSHOT.jar
_Then run our curl call command again (same as the earlier one)_
```shell
ORDER_UUID=$(curl --silent -H 'Content-Type: application/json' -d "{\"itemName\":\"book\"}" http://localhost:8080/order | jq -r '.orderUuid') && for i in `seq 1 15`; do echo $(curl --silent "http://localhost:8080/order/status/"$ORDER_UUID); sleep 1; done;
ORDER_UUID=$(curl --silent -H 'Content-Type: application/json' -d "{\"itemName\":\"book\"}" http://localhost:8080/order | jq -r '.orderUuid') && for i in `seq 1 15`; do sleep 1; echo $(curl --silent "http://localhost:8080/order/status/"$ORDER_UUID); done;
```
![General Flow Diagram](material/kafka-events-intro-1002-4.svg)

View File

@@ -75,12 +75,6 @@ public class OrderService implements OrderTopology {
setDefaultTopic(orderTopic);
sendDefault(order.getOrderUuid(), order);
}};
try {
//just a dummy delay
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
return order;
};
}