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

Idempotent Batch Publishing #143

Open
jaley opened this issue Jun 30, 2023 · 1 comment
Open

Idempotent Batch Publishing #143

jaley opened this issue Jun 30, 2023 · 1 comment
Labels
enhancement New feature or improved functionality.

Comments

@jaley
Copy link
Contributor

jaley commented Jun 30, 2023

Currently we do not attach the message.id field to outgoing Ably messages. This is because the Ably Realtime service does not support idempotent publishing in batches. Once this feature has been implemented on the realtime side, we can simply start populating this field again for exactly-once delivery guarantees. This is particularly useful as duplication of messages is currently very likely when the connector is restarted or autoscaled, etc.

The message.id needs to be set to a value that is deterministically derived from the source SinkRecord, otherwise delivery will not be idempotent. The (topic, partition, offset) triple should uniquely identify the SinkRecord and can simply be formatted into a string identifier for use as message.id.

@jaley jaley added this to the V3.1 - Idempotent Publishing milestone Jun 30, 2023
@sync-by-unito
Copy link

sync-by-unito bot commented Jun 30, 2023

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improved functionality.
Development

No branches or pull requests

2 participants