Google-cloud-go: Is there some way to provide all of the subscribers with all messages of subscription, rather than with subset of those messages?

Created on 1 Nov 2018  路  4Comments  路  Source: googleapis/google-cloud-go

_Originally posted by @IvanProdaiko94 in https://github.com/GoogleCloudPlatform/google-cloud-go/issues/698#issuecomment-435045046_

pubsub question

All 4 comments

If you need to have all subscribers receive all messages, then it is necessary to create a subscription for each of those subscribers. Delivery to multiple subscribers takes on two forms:

Fan out: Every subscriber receives the entire set of messages. This is done by using different subscriptions.
Load balancing: Subscribers receive a subset of the messages, allowing for more parallel processing of messages. This is done by using a single subscription with multiple subscribers.

@kamalaboulhosn, pubsub provides only 10k subscriptions in the project, so, for doing a lot of small tasks, fan out is ok, but it has too small subscriptions limit

Yes, that is correct. Cloud Pub/Sub isn't really designed for cases of very high fanout (in terms of number of topics or in terms of number of subscriptions per topic) at this time.

@kamalaboulhosn could you please suggest any alternative having such an ability in GCP (AppEngine)?

Was this page helpful?
0 / 5 - 0 ratings