-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why not pull consumer for NATS? #1573
Comments
Pull Consumer not support queue group |
Hi. AFAIK, pull consumers support load balancing over multiple clients consuming from the same consumer; essentially, giving the same Competing Consumers pattern by queue group. I also asked in the NATS .NET (v2) client library repo, and one of the maintainers mentioned that all their consumers are pull-based now by default. |
Hi @geekox86 , Do you know how to achieve the equivalent behavior of the line of code I couldn't find a |
The new API of NATS clients including .NET client go like this:
Would you consider pull-based consumers? |
@yang-xiaodong Hi again, just checking of what do you think dear? |
@geekox86 This requires migrating the NATS client library to v2 first, would you be willing to submit a PR? |
Note: Waiting for Nats.net client to implement push-based consumers, pull-based consumers do not support fanout. |
Greetings,
Out of curiosity, why you did not use a Pull Consumer for NATS since it has better flow control, failure handling, and are more efficient for horizontal scalability?
Regards,
Mohannad
The text was updated successfully, but these errors were encountered: