Invocation of these functions can be performed in two distinct modes: synchronously or asynchronously. The choice between these modes depends on the specific requirements and constraints of the use case.
Was this helpful?
232
34
SakuraBloomingMon Oct 07 2024
If a function takes longer than 2 minutes to return a response, the synchronous invocation request will timeout. This limitation underscores the importance of selecting the appropriate invocation mode based on the expected execution time of the function.
Was this helpful?
269
35
GyeongjuGloryDaysFestivalMon Oct 07 2024
Synchronous invocation involves directly calling the function and waiting for its response. This approach is straightforward but may not be suitable for functions that take a long time to execute.
Was this helpful?
348
22
LuciaMon Oct 07 2024
Alternatively, asynchronous invocation using Apex allows for non-blocking execution of the function. This means that the caller can continue with other tasks while the function is being processed in the background.
Was this helpful?
221
67
CryptoAlchemistMon Oct 07 2024
The Function class encapsulates a deployed function instance within an organization's framework. This allows for seamless interaction and invocation of the function from within the organizational environment.