Cloud Function Overview
Cloud functions are the basic unit of AirCode. With our WebIDE, you don't need to care about the tedious things like infrastructure and environment setup, and online operation. Just open the webpage and write your Node.js code, then debug it and deploy it as an accessible back-end API. The API can be easily used to provide data to the front-end, valid user, integrate Slack bots and Webhooks, etc.
Cloud functions are built upon serverless, with automatic scaling capabilities, it helps you quickly deal with traffic peaks and save resources.
New to cloud functions?
If you have never developed a cloud function before, it is recommended to follow our Quick Start to learn how to use it.
Use WebIDE to develop cloud functions. Learn the function's parameters, returned value, error handling and timezone, etc.
Learn how to debug your code online, pass params and view the results, and how to use online requests to make debugging easier.
Deploy functions online, generate accessible URL addresses, and learn how to view and manage versions.
Load Other Functions
In the same application, use require to load other cloud functions and implement function calls between them..
Invoke functions via SDK or HTTP, including a description of timeout and CORS policies.
Get real-time logs when the function is running, and filter log by time, keywords, and others to facilitate troubleshooting.
Instructions on function's Node.js version, timeout, environment variables, auto-scaling, cold start, etc.
- Environment Variable
- Send HTTP Request
- Retrieve POST Parameters
- Retrieve GET Parameters
- Using TypeScript
- ECMAScript Module