Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-8513

RabbitMqIO: Allow reads from exchange-bound queue without declaring the exchange

Details

    • Improvement
    • Status: Triage Needed
    • P1
    • Resolution: Fixed
    • None
    • 2.18.0
    • io-java-rabbitmq
    • None
    • testing with DirectRunner

    Description

      The RabbitMqIO always declares an exchange if it is configured to read from it.  This is problematic with pre-existing exchanges (a relatively common pattern), as there's no provided configuration for the exchange beyond exchange type.  (We stumbled on this because RabbitMqIO always declares a non-durable exchange, which fails if the exchange already exists as a durable exchange)

       

      A solution to this would be to allow RabbitMqIO to read from an exchange without declaring it.  This pattern is already available for queues via the `queueDeclare` flag.  I propose an `exchangeDeclare` flag which preserves existing behavior except for skipping the call to `exchangeDeclare` before binding the queue to the exchange.

       

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              nja Nick Aldwin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m