Kafka connector plugin for onestep.
Project description
onestep-kafka
Kafka connector plugin for onestep.
pip install onestep-kafka
The package registers these YAML resource types through the onestep.resources
entry point:
kafkakafka_topic
Python usage:
from onestep_kafka import KafkaConnector
YAML usage:
resources:
kafka_main:
type: kafka
bootstrap_servers: "${KAFKA_BOOTSTRAP_SERVERS}"
orders:
type: kafka_topic
connector: kafka_main
topic: orders.events
group_id: onestep-orders
batch_size: 100
poll_timeout_ms: 1000
Delivery semantics
The plugin disables Kafka auto commit and follows onestep's at-least-once
contract. Offsets are committed only after processing reaches ack() or a
terminal fail().
If a worker sends output to a sink and exits before the Kafka offset commit succeeds, downstream output can be duplicated. Handlers and downstream sinks should be idempotent when duplicates matter.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onestep_kafka-0.1.1.tar.gz.
File metadata
- Download URL: onestep_kafka-0.1.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31df5fc99c69c31575eca491ea8be4f079fc3594d87a2665360d4639593717d5
|
|
| MD5 |
af915fcd5383dee64e60729a057408c2
|
|
| BLAKE2b-256 |
d58ef80ccabcde6c3c18d9436cb2c990baf234cd2c5fb2684cf5a9bd6a116082
|
File details
Details for the file onestep_kafka-0.1.1-py3-none-any.whl.
File metadata
- Download URL: onestep_kafka-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7791e6ba9b7118a7cacc04ccfb470ef2d8c0e986171ef53f490dde0047c91846
|
|
| MD5 |
6a70514c0855ed5039d9e800566cc38d
|
|
| BLAKE2b-256 |
b7ecca0e2034b7d8a20ab79e09f8e77667ca61429f2e2b5e7045dae5dd283720
|