Summary
In this chapter, we began by discussing the life cycle of a request for a Salesforce application and how that is impacted by the Apex code we write. We saw how important it is for developers to remember that any code we write in Apex that is run on the server may block the user’s application from being responsive and create a negative user experience. From this, we discussed, when looking at how we determine how to improve performance, that we must understand the structure of the Salesforce platform and what that means in terms of resource management – namely that resources are shared and that a baseline of performance must be guaranteed by having a limit on the resources that a single operation can use.
These limits are the governor limits, and we saw how they provide a guaranteed level of performance for end users across the platform. We also discussed why we, as developers, should embrace these governor limits to help us ensure that our application will...