-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from ElifBayrakdar/feature/issue-14
#14 Get Kafka Producer Configs from Configuration
- Loading branch information
Showing
7 changed files
with
188 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Confluent.Kafka; | ||
|
||
namespace KafkaRetry.Job.Helpers; | ||
|
||
public static class Constants | ||
{ | ||
public static class ProducerConfigDefaults | ||
{ | ||
public const bool EnableIdempotence = true; | ||
public const Acks Acks = Confluent.Kafka.Acks.Leader; | ||
public const int BatchSize = 1000000; | ||
public const string ClientId = "rdkafka"; | ||
public const double LingerMs = 5; | ||
public const int MessageTimeoutMs = 300000; | ||
public const int RequestTimeoutMs = 30000; | ||
public const int MessageMaxBytes = 1000000; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters