function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
somasundaram ssomasundaram s 

service layer

Hi All,
         I am using a service layer and having a method in the service layer , and calling this method from a button in a custom object, if multiple user call this method at a time , will it affect the performance , how to overcome this performance issue , please advise.
thanks
Asha KAsha K
If you call the service Asynchronousaaly you can reduce the performance issues.

Below are some of the links for Asynchronus calls

Making an Asynchronous Callout from an Imported WSDL--(soap )
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_continuation_callout_soap.htm

Async calls:-->(Rest  API)
http://releasenotes.docs.salesforce.com/en-us/spring15/release-notes/rn_apex_continuations_ga.htm

Mutiple  async calls
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_continuation_multiple_callouts.htm

Chained async calls

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_continuation_chained_callouts.htm

Limitation of Async calls

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_continuation_limits.htm