I read somewhere that the Salesforce API has a 10 request limit. If we write code to integrate with Salesforce: 1. What is the risk of this limit 2. How can we write code to negate this risk?
My real concern is that I don't want to build our customer this great standalone website that integrates with Salesforce only to have user 11 and 12 kicked out to wait until requests 1-10 are complete?
Edit: Some more details on the specifics of the limitation can be found at http://www.salesforce.com/us/developer/docs/api/Content/implementation_considerations.htm. Look at the section titled limits.
"Limits There is a limit on the number of queries that a user can execute concurrently. A user can have up to 10 query cursors open at a time. If 10 QueryLocator cursors are open when a client application, logged in as the same user, attempts to open a new one, then the oldest of the 10 cursors is released. This results in an error in the client application. Multiple client applications can log in using the same username argument. However, this increases your risk of getting errors due to query limits. If multiple client applications are logged in using the same user, they all share the same session. If one of the client applications calls logout(), it invalidates the session for all the client applications. Using a different user for each client application makes it easier to avoid these limits.*"
If you have Salesforce Sync enabled, you may exceed their allotted API daily call limit. These limits are administered within Salesforce and are typically set at 15,000 calls within a 24-hour period.
In the API Console, there is a similar quota referred to as Requests per 100 seconds per user. By default, it is set to 100 requests per 100 seconds per user and can be adjusted to a maximum value of 1,000. But the number of requests to the API is restricted to a maximum of 10 requests per second per user.
To request an increase of your organization's API limit for a maximum of two weeks, create a case with the Feature Activations & Limits Team and answer the following questions: Are you the System Administrator authorized on behalf of this Organization to make this request?
In Salesforce, you can go to Setup > Monitor > System Overview to check your total API requests in the last 24 hrs. Alternatively, you can also run a report from Reports under Administrative Reports.
Not sure which limit you're referring to, but the governor limits are all listed in the Apex documentation. These limits apply to code running in a given Apex transaction (i.e. in response to a trigger/web service call etc), so adding more users won't hurt you - each transaction gets its own allocation of resources.
There are also limits on the number of long-running concurrent API requests and total API calls in a day. Most of these are per-license, so, again, as the number of users rises, so do the limits.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With