79455944

Date: 2025-02-20 22:15:10
Score: 1.5
Natty:
Report link

Awesome, I faced the problem which I did not create a topic from the Kafka side. I directly subscribe or publish messages for them, and it works fine with one replica of the instance. But when having a horizontal scaling, only 1 replica will listen to the event with the below setup error:

KafkaJSProtocolError: This server does not host this topic-partition type: 'UNKNOWN_TOPIC_OR_PARTITION',

In conclusion, the default partition is 1. if you want to update it you need to create The topic and the partition as the above Code.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: yazan al sharif