Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate subscription exists before starting an endpoint #7311

Open
SzymonPobiega opened this issue Mar 14, 2025 · 0 comments
Open

Validate subscription exists before starting an endpoint #7311

SzymonPobiega opened this issue Mar 14, 2025 · 0 comments
Labels

Comments

@SzymonPobiega
Copy link
Member

Describe the feature.

Is your feature related to a problem? Please describe.

In a more strictly controlled environments might not be possible to run endpoints with high enough privileges to take advantage of the auto subscribe feature of NServiceBus that ensures subscription exist before a subscriber endpoint starts up.

In these environments subscriptions are usually managed by some kind of deployment scripts that need to run before the endpoint starts up. This creates a danger that, should these scripts be incomplete or someone forgot to run them, an endpoint might miss events it is supposed to be subscribed to.

Describe the requested feature

The subscription validation feature would make sure that when a subscriber endpoint starts up, all relevant subscriptions are present.

Potential solution ideas

  • Use broker's SDK at the endpoint level to validate subscriptions exist -- this might cause issues in some brokers e.g. Azure Service Bus which require full manage rights to check existence of entities (queues, topics and subscriptions)
  • Use heuristics e.g. log warning when no event of a given type is received while other events are flowing
  • Use a centralized component (that is running in context of account with elevated privileges) to manage event routing topology

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant