You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: java/food-ordering/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -61,12 +61,12 @@ Restate has a psql interface to query the state of the system.
61
61
62
62
If you buy some products via the webUI, you can see how the order workflow is executed by querying the state of the order status service:
63
63
```shell
64
-
watch -n 1 'psql -h localhost -p 9071 -c "select service, service_key_utf8, key, value_utf8 from state s where s.service='"'"'order.OrderStatusService'"'"';"'
64
+
watch -n 1 'psql -h localhost -p 9071 -c "select service, service_key_utf8, key, value_utf8 from state s where s.service='"'"'examples.order.OrderStatusService'"'"';"'
65
65
```
66
66
67
67
Or have a look at the state of all the services, except for the driver simulator:
68
68
```shell
69
-
watch -n 1 'psql -h localhost -p 9071 -c "select service, service_key_utf8, key, value_utf8 from state s where s.service not in ('"'"'order.DriverMobileAppSimulator'"'"');"'
69
+
watch -n 1 'psql -h localhost -p 9071 -c "select service, service_key_utf8, key, value_utf8 from state s where s.service not in ('"'"'examples.order.DriverMobileAppSimulator'"'"');"'
70
70
```
71
71
72
72
Or you can check the state of the ongoing invocations via:
You can find the implementation of each of the services under `app/restate-app/src/main/java/dev/restate/sdk/examples/`.
80
+
You can find the implementation of each of the services under [`app/restate-app/src/main/java/examples/order`](app/restate-app/src/main/java/examples/order).
81
81
The flow of an incoming order is as follows:
82
82
1. When the customer places an order via the web UI (localhost:3000), an order event is published to Kafka.
83
83
2. Restate subscribes to the order topic and triggers the order workflow foreach incoming event. This subscription is set up by executing two curl commands, as donein the Docker compose file (`docker-compose.yaml`) by the `runtimesetup` container.
0 commit comments