79.2k views
0 votes
What are considerations that a new developer should be aware of when developing in a multi-tenant environment?

1) Many customers share the same instance, so queries need to ensure the correct organization id is referenced to return the correct organizational data
2) The number of API calls allowed is unlimited
3) Governor limits ensure that the amount of CPU time is monitored and limited per customer over a defined time period to ensure that performance in one org is not impacted by another
4) Restrictions are enforced on code that can be deployed into a production environment

1 Answer

4 votes

Final answer:

In a multi-tenant environment, developers must ensure data isolation by correctly referencing organization IDs in queries, adhere to governor limits for CPU time and API calls to prevent impact on performance across tenants, and follow strict code deployment rules to maintain stability in the shared environment.

Step-by-step explanation:

When developing in a multi-tenant environment, there are several important considerations to be aware of to ensure the system operates efficiently and securely for all users:

  • Organization Data Isolation - Developers need to construct queries that correctly reference the organization id to return the appropriate data for each tenant, safeguarding data privacy.
  • CPU and API Limits - Although API calls may not be unlimited, it's crucial to understand and adhere to the platform's governor limits which monitor and restrict CPU time and API calls to prevent one organization's use from adversely affecting another's performance.
  • Code Deployment Restrictions - Strict rules often apply to the code that can go into production to maintain system stability and prevent problematic or insecure code from affecting the shared environment.

By considering these aspects, developers can create applications that are both robust and respectful of the multi-tenant architecture's shared nature.

User Nob
by
8.1k points