Ravindra Yadav, Senior Product Manager at Provar, contributed this post. Follow our blog for more insights from our Salesforce and testing experts!

Salesforce Scale Center is a self-service tool designed to provide a comprehensive overview of your org’s performance and help enhance scalability. As your company continuously introduces new changes and your implementation inevitably grows in complexity, adhering to best practices and vigilantly monitoring the performance impact of those enhancements becomes essential.

Scale Center simplifies this process, providing a user-friendly platform for teams to initiate performance measurements and make it part of their regular testing process. This ensures that applications can scale organically without adversely affecting the org’s performance, ultimately contributing to an enriched user experience. Join us on this journey as we navigate the landscape of Scale Center’s impact on optimizing your org’s performance dynamics.

When to Use Scale Center

Performance concerns often arise during the scaling process, becoming visible when users experience delays or extended response times.

To identify potential bottlenecks and optimize system performance, testers should regularly monitor the following:

Transition times between different pages:

Keep an eye on the time it takes for users to transition between different pages within the Salesforce application. Prolonged transition times may indicate issues with page loading, data retrieval, or other performance-related challenges.

Components taking longer to load on the page:

Components such as dashboards, reports, or custom components (Aura, LWC, Visualforce) should load quickly to ensure a smooth user experience. Delays in loading may suggest inefficiencies in the rendering of these components or or potential issues in the underlying code.

Response time for actions performed on buttons or quick actions:

Actions triggered by user interactions, especially those linked to buttons or clickable elements, should exhibit swift response times. Delayed response times may point to underlying issues in the execution of these actions items.

Salesforce API call durations:

Monitor the time taken for Salesforce API calls to complete, including CRUD operations or any web service calls. Prolonged durations may indicate network issues, job bottlenecks, inefficient queries, or other factors affecting API performance.

Trigger-related delays in overall execution:

Triggers are event-driven pieces that respond to specific data manipulation events, such as the creation, updating, or deletion of records. These delays could be due to inefficient code, large data volume, or complex logics.

Execution time of Apex Jobs used in tests:

Track the time taken for Apex Jobs used in testing scenarios. Prolonged execution times may highlight performance bottlenecks within custom code or job bottlenecks, affecting overall system efficiency.

Overall, If any of these behaviors are observed, such as extended execution times in functional UI workflows, delays in Salesforce API responses, prolonged execution of Apex Jobs or triggers, or irregularities in logins, Scale Center is a perfect place to start, as it provides a comprehensive overview, offering insights into the factors contributing to performance spikes within a specific time frame. Utilizing Scale Center allows you to reach to the root of the problem and address the performance issues effectively.

What Scale Center Offers

Scale Center equips users with the ability to filter and analyze various aspects of performance, including:

  • Successful and failed logins
  • Synchronous Apex requests exceeding specified time limits or governor limits
  • UI requests ran longer that 10 seconds and exceeded governor limits
  • Exceptions during simultaneous attempts to update a specific record
  • Errors in callouts to external packages or managed packages

Furthermore, users have the ability to compare top line metrics and org performance charts at two distinct timestamps.

Strategy for Optimization

Functional regression packs are set to play an important role in our optimization strategy, serving as a fundamental component for issue identification and guiding us to the core challenges with the help of the Scale Center. Outlined below is the recommended step-by-step strategy to be followed:

  1. Baseline the performance of the functional flow of the test case/test pack.
  2. Execute regression and identify significant increases in the overall execution time.
  3. Isolate test cases and test steps that exceed the established baseline.
  4. Examine the activities performed during those prolonged steps.
  5. Record the execution window timestamp for the identified steps.
  6. In Scale Center, use time filters to identify the activities performed during the same timestamp.
  7. Investigate the specific component causing delays (e.g., Apex Jobs).
  8. Find the root cause, review suggested solutions and implement fixes.
  9. Rerun the tests and evaluate the performance again.

This enables testers to evaluate how the Salesforce application performs under heavy loads, ensuring that it remains responsive and reliable during peak usage periods.

Regular Monitoring

Regular monitoring is important to measure the impact of any new integration or changes on the org performance. Regular monitoring could be scheduled to run on regular intervals that best fit your business. Here are a few points where regression packs should be run and performance should be monitored:

  • Monitor performance with any new integration or changes in existing functionality related to the test flow.
  • Conduct regular performance checks, especially during Salesforce releases, to preemptively address any potential impacts on org performance.
  • Proactively identify scalability issues and collaborate with developers to implement solutions for accommodating growing workloads.

Provar Automation test reports systematically capture the execution time for both the comprehensive test flow and individual steps. This functionality becomes a valuable asset for users keen on monitoring any deviations from established baselines. 

Furthermore, Provar Manager provides crucial details, including the start time, end time, and overall duration of test case execution. This information not only facilitates performance monitoring but also empowers users to promptly report any detected deviations for thorough analysis.

Conclusion

By utilizing the capabilities of Salesforce Scale Center, QA teams can play an important role in ensuring the reliability and performance of Salesforce applications. As businesses evolve, this tool emerges as an essential companion, ensuring that applications not only meet current requirements but also stand resilient for future scalability and growth. The consistent monitoring and proactive identification of performance issues contribute significantly to the success of Salesforce implementations in the dynamic domain of business technology.

Sources for Additional Reading

Interested in learning how our solutions, including Provar Automation and Provar Manager, can help enhance your Salesforce strategy? Schedule a demo today!