santanusinha / dropwizard-rabbitmq-actors

RabbitMQ based actor system for dropwizard
10 stars 47 forks source link

Added support for custom consumer tag #65

Closed manojsharma27 closed 1 year ago

manojsharma27 commented 1 year ago

As of now, we are using by default randomly generated tags for consumers like the following: image

A couple of problems with this:

With custom tags, devs can configure the pattern as per their need, like the one mentioned in below image specifies the following:

image


Sample usage in config:

actors:
  TEST-ACTOR:
    exchange: test-exchange
    delayed: false
    prefix: test
    concurrency: 1
    prefetchCount: 1
    consumer:
      connectionIsolationStrategy:
        isolationLevel: DEFAULT
      tag: test_${APP-NAME}_${APP-VERSION}_${APP-ID}

Generated consumer tag with above config: image