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

Set and validate supported service discovery protocol version #1526

Merged
merged 6 commits into from
May 19, 2024

Conversation

tillrohrmann
Copy link
Contributor

This commit sends the supported service discovery protocol version to a
service endpoint as part of the accept headers and validates that the
returned response is using a supported version (send via the content
type header).

This fixes #1523.

This PR is based on #1517

git-subtree-dir: crates/types/service-protocol
git-subtree-split: 1898426fc98c16d704068594cd54394912845ff7
Moving the restate-service-protocol types to restate-types makes
it simpler to share them across different crates.
This commit introduces the selection of a service protocol version when starting
the InvocationTask. The service protocol version is sent to the service endpoint
via the content type and accept headers in the form of vnd.restate.invocation.vX.
Additionally, we record the chosen service protocol version in the journal metadata
for sanity checks. Note, currently we don't support resuming an invocation that
was started on an older protocol version with a newer protocol version.

This fixes restatedev#1510.
This commit sends the supported service discovery protocol version to a
service endpoint as part of the accept headers and validates that the
returned response is using a supported version (send via the content
type header).

This fixes restatedev#1523.
@tillrohrmann tillrohrmann merged commit dbf2f3e into restatedev:main May 19, 2024
5 of 6 checks passed
@tillrohrmann tillrohrmann deleted the issues/1523 branch May 19, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send accepted service discovery protocol version to service endpoint via accept headers
1 participant