Skip to content

Commit

Permalink
Service endpoint -> Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Dec 18, 2023
1 parent 55e1316 commit 8411963
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ Once the runtime is up, let it discover the services of the example by executing

- For MacOS:
```shell
curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}'
curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}'
```
- For Linux:
```shell
curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}'
curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}'
```

This should give you the following output in case of the ticket reservation example:
Expand Down
2 changes: 1 addition & 1 deletion typescript/ecommerce-store/deployment/aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ssh -i shopping-demo-key.pem -L 5050:pgadmin.shopping-cart-demo:5050 -L 16686:ja
Then discover the services from within the ssh session:

```shell
curl -X POST http://restate-runtime.shopping-cart-demo:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://shopping-services.shopping-cart-demo:8080"}'
curl -X POST http://restate-runtime.shopping-cart-demo:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://shopping-services.shopping-cart-demo:8080"}'
```

This prints out the services were discovered by the Restate runtime.
Expand Down
2 changes: 1 addition & 1 deletion typescript/ecommerce-store/deployment/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ variable "restate_runtime_ingress_port" {
}

variable "restate_runtime_discovery_port" {
description = "The port of the restate runtime to register service endpoints"
description = "The port of the restate runtime to register deployments"
default = 9070
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
- runtime
- services
restart: "no"
entrypoint: ["sh", "-c", "sleep 5 && curl -X POST 'runtime:9070/endpoints' -H 'content-type: application/json' -d '{\"uri\": \"http://services:8080\"}' || exit 1"]
entrypoint: ["sh", "-c", "sleep 5 && curl -X POST 'runtime:9070/deployments' -H 'content-type: application/json' -d '{\"uri\": \"http://services:8080\"}' || exit 1"]

db:
image: 'postgres:15.0-alpine'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
- ../local/:/scripts
- ../data/:/data
entrypoint: ["sh", "-c", "sleep 5 && apk add --no-cache bash jq curl &&
curl -X POST 'runtime:9070/endpoints' -H 'content-type: application/json' -d '{\"uri\": \"http://services:8080\"}' &&
curl -X POST 'runtime:9070/deployments' -H 'content-type: application/json' -d '{\"uri\": \"http://services:8080\"}' &&
sleep 3 && cd /scripts && chmod +x init_state.sh && ./init_state.sh runtime:9090
|| exit 1"]

Expand Down
2 changes: 1 addition & 1 deletion typescript/food-ordering/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
- services
restart: "no"
entrypoint: ["sh", "-c", "sleep 5 && apk add --no-cache bash jq curl &&
curl -X POST 'runtime:9070/endpoints' -H 'content-type: application/json' -d '{\"uri\": \"http://services:8080\"}'
curl -X POST 'runtime:9070/deployments' -H 'content-type: application/json' -d '{\"uri\": \"http://services:8080\"}'
|| exit 1"]

grpcui:
Expand Down

0 comments on commit 8411963

Please sign in to comment.