Commit offsets
Record, for a consumer group, that one partition of a topic has been handled up to and including an offset, so the next read starts after it. Use it with Read messages and mark_as_read off to mark messages only once they are processed, or to skip ahead or go back. Run it while no other reader of the group is active. Needs a REST Proxy that supports consumer instances.
Command in the Kafka toolkit · id ooa.kafka/commit_offsets · 8 inputs (4 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Endpoint address | String | No | Kafka REST Proxy address, e.g. https://pkc-12345.us-east-1.aws.confluent.cloud:443 or http://kafka-rest.internal:8082. | |
| Consumer group | String | Yes | Reader group whose position is changed. | |
| Topic | String | Yes | Topic of the messages. | |
| Partition | Number | Yes | Partition number, as shown in the partition column of Read messages. | |
| Offset | Number | Yes | Offset of the last message handled in that partition; the group carries on with the message after it. | |
| API key | String | No | API key or user name, used with api_secret. | |
| API secret | Credential | No | API secret or password from the vault. | |
| Access token | Credential | No | Bearer token from the vault, used instead of an API key and secret. |
Outputs
| Output | Type | What it is |
|---|---|---|
| next_offset | Number | Offset the group reads next in that partition (offset + 1). |