Skip to main content

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:

  • kafka
  • kafka_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onestep_kafka-0.1.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onestep_kafka-0.1.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

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

Hashes for onestep_kafka-0.1.1.tar.gz
Algorithm Hash digest
SHA256 31df5fc99c69c31575eca491ea8be4f079fc3594d87a2665360d4639593717d5
MD5 af915fcd5383dee64e60729a057408c2
BLAKE2b-256 d58ef80ccabcde6c3c18d9436cb2c990baf234cd2c5fb2684cf5a9bd6a116082

See more details on using hashes here.

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

Hashes for onestep_kafka-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7791e6ba9b7118a7cacc04ccfb470ef2d8c0e986171ef53f490dde0047c91846
MD5 6a70514c0855ed5039d9e800566cc38d
BLAKE2b-256 b7ecca0e2034b7d8a20ab79e09f8e77667ca61429f2e2b5e7045dae5dd283720

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page