1

I try to make Durable and Delivery consumer, but i get "No Interest" as result.

  1. It is "Active" When i create PushSubscribeOptions like this:

    PushSubscribeOptions pso = PushSubscribeOptions.Builder()

             .WithDurable(options?.DurableName)
              .WithStream(options?.StreamName)
             .Build();
         IJetStreamPushAsyncSubscription sub =
             _js.PushSubscribeAsync(options?.Subject, someHandler, true, pso);
    
  2. It is "No interest" when i use this code:

    PushSubscribeOptions pso = PushSubscribeOptions.Builder()

             .WithDurable(options?.DurableName)
             .WithStream(options?.StreamName)
             .WithDeliverGroup(options?.DeliveryGroup)
             .Build();
    
         IJetStreamPushAsyncSubscription sub =
             _js.PushSubscribeAsync(options?.Subject, someHandler, true, pso);
    

So , i am confuse.

How to make Push subscription with Delivery+Durable options?

Admiral Land
  • 2,304
  • 7
  • 43
  • 81

1 Answers1

0

Start the subscriber before you create the push consumer. At least in go, the no-interest is only an optimization (why transmit on a topic no one is subscribing on), and there it will start to push as soon as the is a subscriber ON THE PUSH TOPIC

Thomas
  • 1