dapr / dapr/dotnet-sdk

Issue with Consumer ID in Dapr Topic Subscription

Open
#1,360 6 comments 0 reactions 0 assignees View on GitHub
area/client/pubsub kind/bug
Dominant language
C#
Stars
1.2k
Forks
378
Avg merge
2d 1h
Merged PRs (30d)
6

Description

I'm working with a Dapr application, and I'm having trouble with my topic subscription setup in the following code:

`builder.MapControllerRoute("ReceiveFeedEvent", "/ReceiveFeedEvent").WithTopic(new TopicOptions
{
PubsubName = Config.DaprAlertFeedConsumerName,
Name = configuration[Config.AlertFeedTopicNameKey],
Metadata = new Dictionary()
{
{ "consumerID","feed"}
}
});`

I'm using this configuration to set up a route that receives events from a specified topic. However, it seems that the consumerID I specified in the metadata does not work as expected.

Kindly help if there is a specific format or requirement for the consumerID in Dapr subscriptions?

I am trying to subscribe multiple subscription under one topic using Dapr.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.