How to use IJetStreamPullAsyncSubscription, Handler is not invoked by NATS on publish #914
Closed
rdkumavat1
started this conversation in
General
Replies: 2 comments 2 replies
-
cc @scottf |
Beta Was this translation helpful? Give feedback.
0 replies
-
A pull subscription does not work like a push subscription, meaning the server doesn't just start sending messages, you must send a pull request to tell the server to send messages. Would you please look at all the samples that start with "Simplification" in this folder: https://github.com/nats-io/nats.net.v1/tree/main/src/Samples and try using the simplification api. It has consume api which use pull under the covers and provides continuous message retrieval from the server, much like a push consumer would. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use pull consumer with Handler, I am expecting NATS should call that handler on new message publish in the subject, but it is not happening in my case, Can you please share document or example for the same?
I have this sample code.
var consumerConfigModel = Config.ProcessConfigurationObject(consumerConfigObject);
Beta Was this translation helpful? Give feedback.
All reactions