Repository navigation
Integration client - #646
Merged
Merged
Conversation
Contributor
slinkydeveloper
force-pushed
the
integration-client
branch
from
August 21, 2026 13:28
e3b6cbc to
6b94b8b
Compare
slinkydeveloper
force-pushed
the
integration-client
branch
from
October 15, 2026 09:38
0137b98 to
57f9cf5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restate Integration Client
You can use the Integration API to turn any source of events into Restate invocations.
Use an integration client to send invocations to Restate using the Integration API.
Installation
Add
dev.restate:integration-clientto your dependencies.Create a client
Create one client for your Restate ingress URL and close it when your integration shuts down:
Simple producer
Use
Producerwhen your source does not provide stable offsets that you can replay.The client assigns an offset to each invocation.
Call
flush()before closing the producer to wait until Restate has durably committed everything you sent:Exactly once producer
Use
ExactlyOnceProducerwhen your source provides stable, strictly increasing offsets,and choose a producer ID that remains stable across restarts and is unique to that offset sequence.
After
flush()returns, you can checkpoint the returned offset in your source:Producer default fields
Producers accept
InvocationMetadatawhen every invocation shares fields such as the target service, handler, or headers.Set defaults to avoid sending over and over the same fields in every invocation.
Fields set on an individual invocation override these defaults.
More
For configuration options and advanced usage, see the Integration client Javadocs.