Is it bad practice to create kafka producer in thread based on demand

后端 未结 0 1528
醉话见心
醉话见心 2021-01-31 05:19

We have a requirement where if a user posts a messages through API, we have to post that message to kafka topic. I am creating a new kafka producer ever time a request comes.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题