Replies: 2 comments 6 replies
-
We can expose the current consumer configuration and I think that makes sense, but when you create a consumer you have different handlers like: var consumer1 = await Consumer.Create(
new ConsumerConfig(system, stream)
{
Reference = "my_consumer_1",
MessageHandler = async (sourceStream, consumer, ctx, message) =>
{
/// handler for my_consumer_1
}
...}
.......
var consumer2 = await Consumer.Create(
new ConsumerConfig(system, stream)
{
Reference = "my_consumer_2",
MessageHandler = async (sourceStream, consumer, ctx, message) =>
{
/// handler for my_consumer_2
}
|
Beta Was this translation helpful? Give feedback.
6 replies
-
@plewam this #348 adds more info. I think can be interesting for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am planning to have multiple consumers being bound to the stream system. They might consume from different streams or the same stream. How can I tell which consumer received the message during the
MessageReceived
method? I might be missing something, but when I create a consumer I can pass in a aReference
into theConsumerConfig
. Can't thisReference
be exposed during theMessageReceived
method?Kind regards,
Mathis
Beta Was this translation helpful? Give feedback.
All reactions