all-things-risingwave

How to add support for filtered subjects and durable options in the NATS connector for consumers?

I noticed that the subject field does not apply to the consumer in the NATS connector. Mathew Haji made a pull request adding support for filtered_subjects on the consumer and durable support. How can I add this support in the NATS connector for consumers?

Ma

Mathew Haji

Asked on Mar 24, 2024

To add support for filtered subjects and durable options in the NATS connector for consumers, you can follow these steps:

  1. Update the NATS connector code to include the new fields filtered_subjects and durable for consumers.

  2. Implement the logic to handle these new fields in the consumer code.

  3. Test the changes to ensure that the filtered subjects and durable options work as expected.

  4. Submit a pull request with the changes for review and integration into the main repository.

Mar 24, 2024Edited by