glazkovalex / Rebus.Kafka

Apache Kafka transport for Rebus
MIT License
16 stars 6 forks source link

The consumer subscribes only to the first topic entered #9

Closed zulimazuli closed 7 months ago

zulimazuli commented 8 months ago

Hi, I use Rebus for integration events. I have to switch to Kafka for some reason and wanted to use this library. Unfortunately, I have encountered a problem.

By adding more topics, the consumer subscribes only to the first one, so that, although many topics are sent, only one is received (subscribed to).

The current setup works flawless for RabbitMQ or InMemory transport implementations.

I suspect that the issue may be related to topic subscription.

I have reproduced the issue on your example:

Steps to reproduce:

Using the Examples projects available: Scaleout.Producer, Scaleout.Messages and Scaleout.Consumers, I modified the Producer and Consumers project as follows:

Expected behaviour: Console outputs messages from both topics.

Actual: Console outputs only topics from TestMessage.

Any idea what could be the cause, or maybe I'm doing something wrong?

glazkovalex commented 7 months ago

@zulimazuli , hello! I couldn't reproduce the bug :( But I added test TwoPublishTwoSubscribe, which checks the subscription for two events. I also adjusted the example so that it works through two events (topics). result You can check them on your equipment. Please write to me how the test and example work for you.

glazkovalex commented 7 months ago

Apparently you've made sure that it's not about the Rebus.Kafka library. Closing the issue.