Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15231

Support topic patterns in Pulsar when subscribing

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.5.0
    • Component/s: camel-pulsar
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Pulsar supports a fantastic feature that is very common to Pulsar users. That is subscribing to a pattern of topics defined by a regular expression.
      // Subscribe to all topics in a namespacePattern allTopicsInNamespace = Pattern.compile("persistent://public/default/.*");{ Consumer<byte[]> allTopicsConsumer = pulsarClient.newConsumer()
      .topicsPattern(allTopicsInNamespace)
      .subscriptionName("subscription-1")
      .subscribe();

      The Pulsar component in camel doesn't seem to support this important use case. I'm wondering if someone familiar with the Camel Pulsar component could estimate the level of effort for a change like this. I'm not familiar enough with the project to even pinpoint where a change like this should go.}}

      See also:

      https://pulsar.apache.org/docs/en/concepts-messaging/#multi-topic-subscriptions

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                diemscott Scott Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: