-
Notifications
You must be signed in to change notification settings - Fork 230
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
Cannot listen to more than 20 subscriptions? #1705
Comments
I just found this, and changing the |
@daffron Thanks for both the issue and the follow-up! I'm glad you found a workaround, but I'll want to look at this still. |
This could relate to a hard limit on PubSub clients where a client can only handle 100 streams. We have a service that subscribes to multiple subscriptions. And initially, we had that issue we opened a ticket with GCP support. So by default, all subscriptions share the same client and each subscription has 5 streams. So the workaround mentioned above might work for you but eventually, you will hit the hard limit again if you have more subscriptions. In our case, we compute the client that the service needs based on the number of subscriptions. we have 10 subscriptions per client which are 50 streams per client. However, we do not have Exactly Once Delivery feature enable, so I am not sure if this is applied to your use case. You can refer to this document. |
My understanding is that making many subscribers (not just streams, but different subscriptions) in one client is considered a bit of an anti-pattern, but it seems like it should still be able to either do it reliably, or at least notify you gracefully that it's not going to work. |
Oh I see, so one PubSub client per 1 Subscriber is recommended?
…On Thu, Apr 13, 2023 at 12:43 AM Megan Potter ***@***.***> wrote:
My understanding is that making many subscribers (not just streams, but
different subscriptions) in one client is considered a bit of an
anti-pattern, but it seems like it should still be able to either do it
reliably, or at least notify you gracefully that it's not going to work.
—
Reply to this email directly, view it on GitHub
<#1705 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF3BEIG4THHC2VEZ3XVOZM3XA3LRRANCNFSM6AAAAAAWSQTOCY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Jack Daffron
*Daffron Ltd*Web Development
(+61) 0473 946 906
|
@daffron We talked about this today at our status meeting, and the conclusion is that 20 subscribers in one client is not something we don't support, just that you may start running up against grpc limitations (it has a stream limit, and that would be shared within one client ( |
@feywind Just saw this! - Thanks for getting back to me, that makes sense! |
Thanks for stopping by to ask us a question! Please make sure to include:
Ive spent the last 2 days trial and error-ing a lot of parameters, but as soon as I listen to more than 20 subscriptions. I am no longer able to 'ack' any messages.
I am using Exactly Once Delivery and
ackWithResponse()
just hangs as soon as I start more than 20 listeners, I have rotated which subs these are and it seems purely the number of subs, not what they are.Is there a config item Ive missed in GCP / Pubsub somewhere?
Thanks!
What code you've already tried
Any error messages you're getting
No error messages or warnings about max event listeners or anything
Eventually if I wait 10 mins I will get the below error, this is 10 minutes after calling
ackWithResponse()
and hangingPLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
The text was updated successfully, but these errors were encountered: