is it possible to use kafkatemplate with singleton scope?

Why do you think you need a new instance for each request? A single instance is normally all you need – in fact, even if you use multiple instances, the same underlying Kafka Producer is used (by default).

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top