Skip to content

General performance figures and optimisations #214

@emcfarlane

Description

General question on performance figures for confluent-kafka-go and how it compares to sarama? I am running go benchmarks locally using the channel based Producer/Consumers and am getting around 2x worse then sarama. Settings for consumer:

	"group.id":                        groupID,
	"default.topic.config":            kafka.ConfigMap{"auto.offset.reset": "earliest"},
	"go.events.channel.enable":        true,
	"go.application.rebalance.enable": true,
	"batch.num.messages": 100000,

Settings for producer:

	"compression.codec":       "snappy",
	"request.required.acks":   -1,
	"socket.keepalive.enable": true,
	"queue.buffering.max.ms":  2,
	"batch.num.messages":      100000,

The "queue.buffering.max.ms" had the largest effect dropping 20s write for 100k events to 1s. How can I improve this?

I am not able to reproduce this gists results:
https://gist.github.com/savaki/a19dcc1e72cb5d621118fbee1db4e61f

Checklist

Please provide the following information:

  • confluent-kafka-go and librdkafka version (LibraryVersion()): v0.11.4
  • Apache Kafka broker version: v1.1.0
  • Operating system: MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions