Each invocation has its own unique ID and lifecycle.
Have a look at managing invocations to learn how to manage the lifecycle of an invocation.
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 projectRequest-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.