Function Compute supports various programming languages. For more information about the programming languages that are supported by Function Compute, see Overview. If your program is written in a language that is not supported by Function Compute, you can use one of the following methods to run your program.
Rewrite your program in a language that is supported by Function Compute. Some languages, such as Node.js and Python, contain rich class libraries, which improve the efficiency of development.
Use a custom runtime environment. For more information, see Overview.
Compile your C or C++ program as an executable file and use system calls such as fork to run the file.
Compile your C or C++ module as a shared library and create a Python binding to interface with the library.
The following table describes the advantages and disadvantages of these methods.
Build method | Difficulty | Performance loss | Scenarios |
Rewriting the logic | Depends on program complexity | Depends on language and scenario | Applications that are not complex |
Using a custom runtime | Low | Low | All scenarios |
Calling an executable file | Low | High. | Latency-insensitive applications, such as asynchronous processing of files in the background |
Calling a shared library | High | Low | High-performance applications |
If your issue persists after you use the preceding methods, join the DingTalk group 64970014484 for technical support.