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

document overriding options.correlator #96

Open
mateodelnorte opened this issue Apr 11, 2017 · 0 comments
Open

document overriding options.correlator #96

mateodelnorte opened this issue Apr 11, 2017 · 0 comments
Assignees
Milestone

Comments

@mateodelnorte
Copy link
Owner

allows for overriding default behavior of subscriptions where, when a queueName is not manually provided, servicebus will auto-create a unique queue name for a fanout subscription. by overriding the correlator, one can easily provide their own with simpler conventions that, for instance, don't auto-generate unique queue names:

servicebus.bus({
  correlator: {
    queueName: function (opts, cb) {
      return cb(null, `my-process-name-${opts.queueName}`);
    }
  }
});

In time, a simpler correlator will become the default and a number of options will be included with servicebus.

@mateodelnorte mateodelnorte added this to the improved docs milestone Apr 11, 2017
@mateodelnorte mateodelnorte self-assigned this Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant