dapr / dapr/go-sdk

Support for adding DeadLetterTopic setting for programatic subscriptions

Open
#339 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
479
Forks
187
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

I am subscribing to the topic using a programmatic subscription as below:
```golang
sub := &common.Subscription{
PubsubName: env.GetString("PUBSUB_NAME"),
Topic: env.GetString("TOPIC_NAME"),
Metadata: map[string]string{"consumerID": "{namespace}"},
}
```
I want to specify `DeadLetterTopic` for this subscription.

**Describe the solution you'd like**

Is it possible to add `DeadLetterTopic` to `common.Subscription` structure?

**Describe alternatives you've considered**

I thought of using a declarative subscription as an alternative but I am using `grpc` hence not sure how routing will work.

**Additional context**

Contributor guide

Open the contributing guide

Research direction

Start at the common.Subscription structure and trace how programmatic subscriptions are sent through the gRPC path. Confirm where DeadLetterTopic must be accepted and propagated, then verify that a subscription configured with it retains the setting; the issue does not name a test or file to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, grpc
Domain
api, backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.