-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/kafka #538
Feat/kafka #538
Conversation
internal/sink/sink.go
Outdated
} | ||
|
||
// Create a new Kafka producer | ||
producer, err := sarama.NewSyncProducer(k.brokerAddr, k.config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to cache the producer and not recreate it for every incoming event
internal/sink/sink.go
Outdated
config := sarama.NewConfig() | ||
config.Producer.Return.Successes = true | ||
config.Producer.RequiredAcks = sarama.WaitForAll | ||
config.Producer.Retry.Max = c.DeliveryRetries //should we be using retryhint for this? | ||
|
||
kafka.config = config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config := sarama.NewConfig() | |
config.Producer.Return.Successes = true | |
config.Producer.RequiredAcks = sarama.WaitForAll | |
config.Producer.Retry.Max = c.DeliveryRetries //should we be using retryhint for this? | |
kafka.config = config | |
kafka.config.Producer.Return.Successes = true | |
kafka.config.Producer.RequiredAcks = sarama.WaitForAll | |
kafka.config.Producer.Retry.Max = c.DeliveryRetries //should we be using retryhint for this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we getting rid of NewConfig?
What's Included:
TODO: