Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service endpoint -> Deployment #58

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading