Skip to content

Commit

Permalink
feat: increase batch byte limit default 10kb to 10mb
Browse files Browse the repository at this point in the history
  • Loading branch information
erayarslan committed Apr 25, 2023
1 parent d71414f commit 2a1ec1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Check out on [go-dcp-client](https://github.com/Trendyol/go-dcp-client#configura
| `kafka.collectionTopicMapping` | map[string]string | yes | | |
| `kafka.brokers` | []string | yes | | |
| `kafka.producerBatchSize` | integer | no | 2000 | |
| `kafka.producerBatchBytes` | integer | no | 10240 | |
| `kafka.producerBatchBytes` | integer | no | 10485760 | |
| `kafka.producerBatchTickerDuration` | time.Duration | no | 10s | |
| `kafka.readTimeout` | time.Duration | no | 30s | |
| `kafka.writeTimeout` | time.Duration | no | 30s | |
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Kafka struct {
RootCAPath string `yaml:"rootCAPath"`
Brokers []string `yaml:"brokers"`
ProducerBatchSize int `yaml:"producerBatchSize" default:"2000"`
ProducerBatchBytes int `yaml:"producerBatchBytes" default:"10240"`
ProducerBatchBytes int `yaml:"producerBatchBytes" default:"10485760"`
ProducerBatchTickerDuration time.Duration `yaml:"producerBatchTickerDuration"`
ReadTimeout time.Duration `yaml:"readTimeout"`
WriteTimeout time.Duration `yaml:"writeTimeout"`
Expand Down

0 comments on commit 2a1ec1c

Please sign in to comment.