When a client triggers a function, FunctionGraph persists the request and sends a response immediately to the client. The client proceeds without waiting for the execution result. You cannot know the result in real time. FunctionGraph queues the asynchronous requests and processes them when the server is idle. To obtain asynchronous processing results or to retry when an asynchronous request fails, configure asynchronous settings.
Event Source |
Invocation Mode |
---|---|
SMN |
Asynchronous |
OBS |
Asynchronous |
DIS |
Asynchronous |
Timer |
Asynchronous |
LTS |
Asynchronous |
CTS |
Asynchronous |
DDS |
Asynchronous |
DMS for Kafka |
Asynchronous |
If the E2E function execution latency exceeds 90s, asynchronous invocation is recommended. If synchronous invocation is used, no responses can be received after 90s due to gateway restrictions.
Example
The following procedure uses the APIG trigger of a function as an example.