-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* dlq topic producer options * user defined producer options * add another unit test * retry letter queue producer use the same dlq producer option Fixes #807 ### Motivation To customize producer options for DLQ topics. ### Modifications Add DLQProducerOptions to consumer's DLQ policy. ### Verifying this change - [ ] Make sure that the change passes the CI checks. *(Please pick either of the following options)* The existing DLQ test is enhanced to cover customized producer options. ### Does this pull request potentially affect one of the following parts: A new producer options field, `DLQProuducerOptions`, is introduced for DLQ policy to govern the producer options. ``` ConsumerOptions{ Topics: topics, DLQ: &DLQPolicy{ MaxDeliveries: 3, DeadLetterTopic: dlqTopic, DLQProducerOptions: ProducerOptions{ BatchingMaxPublishDelay: 100 * time.Millisecond, }, }, ``` - Dependencies (does it add or upgrade a dependency): no - The public API: yes - The schema: no - The default values of configurations: yes (the existing lz4 compression type is the default.) - The wire protocol: no ### Documentation - Does this pull request introduce a new feature? (yes) - If yes, how is the feature documented? (GoDocs) - If a feature is not applicable for documentation, explain why? - If a feature is not documented yet in this PR, please create a followup issue for adding the documentation
- Loading branch information
Showing
4 changed files
with
46 additions
and
15 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