-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Hi @pozil,
we are currently running into errors, when load is a little bit higher (>80 requests in sequence) and we are hitting the salesforce tenantIdRateLimiter:
Service-Logs: "Error: 8 RESOURCE_EXHAUSTED: The service received too many connections and doesn't have the resources to accept new connections."
Salesforce-Logs: "The service received too many connections and doesn't have the resources to accept new connections"
The salesforce support suggested to use PublishStream instead of Publish.
PublishStream in .proto: https://github.com/pozil/pub-sub-api-node-client/blob/main/pubsub_api.proto#L400
PublishStream Salesforce Docs: https://developer.salesforce.com/docs/platform/pub-sub-api/references/methods/publishstream-rpc.html?q=publish