restate
restate copied to clipboard
Record service protocol version and send to service endpoint
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 https://github.com/restatedev/restate/issues/1510.
This PR is based on #1508.