Skip to content

Commit

Permalink
Merge pull request #73 from Raj-Adarsh/a5_processor_v10
Browse files Browse the repository at this point in the history
fix: updated proceessor batch flush size
  • Loading branch information
Raj-Adarsh authored Jun 28, 2024
2 parents 58bd855 + 19a9153 commit c379539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ func NewProducer(brokers []string) (Producer, error) {
config.Producer.Return.Errors = true
config.Producer.RequiredAcks = sarama.WaitForAll
config.ChannelBufferSize = 10000
config.Net.MaxOpenRequests = 250
config.Net.MaxOpenRequests = 100
config.Metadata.AllowAutoTopicCreation = false
config.Producer.Flush.Messages = 1000
config.Producer.Flush.Messages = 100
config.Producer.Flush.Frequency = 500 * time.Millisecond

producer, err := sarama.NewSyncProducer(brokers, config)
Expand Down

0 comments on commit c379539

Please sign in to comment.