Skip to content

Missing interceptors for producer #2049

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

Closed
nikoncode opened this issue Dec 16, 2021 · 1 comment · Fixed by #2112
Closed

Missing interceptors for producer #2049

nikoncode opened this issue Dec 16, 2021 · 1 comment · Fixed by #2112
Labels
ideal-for-user-contribution An issue that would ideal for a user to get started with contributing. type: enhancement
Milestone

Comments

@nikoncode
Copy link

Hi guys,

Do you have any plans to implement a producer interceptor? I know that Kafka provides ProducerInterceptor but it's not managed by spring. I also know that it can be hacked to pass bean using configuration methods.

There are other ways how to solve problem exists: use ProducerPostProcessor or AOP, but I am interested in more graceful way to do that.

@garyrussell garyrussell added this to the Backlog milestone Dec 16, 2021
@garyrussell
Copy link
Contributor

There are no current plans, but contributions are welcome.

@garyrussell garyrussell added the ideal-for-user-contribution An issue that would ideal for a user to get started with contributing. label Dec 16, 2021
garyrussell pushed a commit that referenced this issue Feb 23, 2022
* GH-2049: Spring Managed Producer Interceptors

Allow producer interceptors to be managed by Spring so that
they can be used in KafkaTemplate instead of providing the classname
of the interceptor to Kafka configuraiton.

Adding tests and docs.

Resolves #2049

* Addressing PR review comments

* Fixing typo in the docs

* Addressing PR review comments.

Adding a CompositeProducerInterceptor to allow multiple
producer interceptors on KafkaTemplate.

* Addressing PR review
@garyrussell garyrussell modified the milestones: Backlog, 3.0.0-M3 Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ideal-for-user-contribution An issue that would ideal for a user to get started with contributing. type: enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants