Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

distributes protobuf messages to different Kafka topics according to Cid field value

License

Notifications You must be signed in to change notification settings

bwNetFlow/processor_splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splitter

This is the Splitter component of the bwNetFlow platform. It supports taking protobuf-encoded flow messages from a specified Kafka topic, splitting it along its customer ID field, and writing the result back into a number of Kafka topic in accordings with the customer ID.

This processor currently assumes that the only relevant split is along the numeric customer ID field Cid. It is however a conceivable use case to create topics for different protocol numbers or similar, and would have to be implemented as a configurable option.

Usage

The simplest call could look like this, which would start the reducer process with TLS encryption and SASL auth enabled and all outputs working.

export KAFKA_SASL_USER=prod-splitter
export KAFKA_SASL_PASS=somesecurepass`
./splitter \
        --kafka.brokers=kafka.local:9093 \
        --kafka.in.topic=flows-enriched \
        --kafka.out.topicprefix=flows-customer \
        --kafka.consumer_group=splitter-prod \
        --cids "100,101,102" # will create only flows-customer-100, ... topics`

About

distributes protobuf messages to different Kafka topics according to Cid field value

Resources

License

Stars

Watchers

Forks

Packages

No packages published