Salesforce functions: New Salesforce feature

Problem Statement - Apex Governor Limits:

 

·         Apex runs in a multitenant environment, the Apex runtime engine strictly enforces limits so that runaway Apex code or processes don't monopolize shared resources. 

·         The Maximum CPU time on the Salesforce servers is mentioned as below

Description

Synchronous Limit

Asynchronous Limit

Maximum CPU time on the Salesforce servers

10 seconds

60 seconds

·         As of now, the salesforce solution can be built with Apex code only. 

About Salesforce Functions:

·         As a Salesforce developer, you want to focus on bringing your solution to market quickly and easily without worrying about infrastructure provisioning or managing new apps. But sometimes, you had to go off-platform to get the compute power and scalability you needed. Starting today, with Salesforce Functions, there is now another way.

·         With Functions, Salesforce developers can build salesforce solutions with standard programming languages like JavaScript/TypeScript (using Node.js) and Java, and they have access to the vast universe of open-source code and libraries to accelerate development.

·         There’s no need for external services, connected apps, client keys, certificates, and authorization, the function code will be auto authenticated, and no need to worry about it and the function code will run in the salesforce trust boundary.

·         With Salesforce functions, the Maximum CPU time will be increased as below

Description

Synchronous Limit

Asynchronous Limit

Maximum CPU time

2 minutes

15 minutes

Quick Start: Salesforce Functions

·         By default, the Function feature will not be enabled in salesforce org. You can check it by following Path – Setup à function à 

·         You may raise a salesforce ticket to enable it, or click here to sign up for a 30-day trial salesforce function enabled org.

·         You can create your first salesforce function and deploy it to your function enabled org by following the steps 


Thank You!