Each invocation has its own unique ID and lifecycle.
Have a look at managing invocations to learn about the lifecycle, kill or cancel it.
Always invoke handlers via the context, if you have access to it.
Restate then attaches information about the invocation to the parent invocation.
Installation
First, add the dependency to your projectgithub.com/restatedev/sdk-go/ingress.
Then, register the service you want to invoke.
Finally, connect to Restate and invoke the handler with your preferred semantics.
Request-response invocations
To wait on a response from the handler:One-way invocations
To send a message without waiting for a response:Delayed invocations
To schedule an invocation for a later point in time:Invoke a handler idempotently
By using Restate and an idempotency key, you can make any service call idempotent, without any extra code or setup. This is a very powerful feature to ensure that your system stays consistent and doesn’t perform the same operation multiple times. To make a service call idempotent, you can use the idempotency key feature. Add the idempotency key to the header via:Check out the service configuration docs to tune the retention time.