Skip to content

ugol/mockafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mockafka

Mock Kafka Server, useful for testing and experimenting with Kafka

Basic usage

./mockafka start

You can specify the number of brokers to run (default:3)

./mockafka start --brokers 5

Cloning and Building

git clone github.com/ugol/mockafka
cd mockafka
go build 

Thanks

At the moment mockafka is just a wrapper on wonderful librdkafka library functionality from Magnus Edenhill

As stated in: https://docs.confluent.io/platform/current/clients/confluent-kafka-go/index.html#MockCluster

"NewMockCluster provides a mock Kafka cluster with a configurable number of brokers that support a reasonable subset of Kafka protocol operations, error injection, etc. Mock clusters provide localhost listeners that can be used as the bootstrap servers by multiple Kafka client instances. Currently supported functionality: - Producer - Idempotent Producer - Transactional Producer - Low-level consumer - High-level balanced consumer groups with offset commits - Topic Metadata and auto creation"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages