Environment Related
How to Create a CloudBase Environment
Please refer to the documentation Activate Cloud Development Services.
Can multiple resource environments be created?
A resource environment is a collection of resources used during mini-program development, including databases, file storage, etc. The resources in each environment are independent and isolated from each other. You can create multiple environments based on your needs for various scenarios such as development, testing, and production. If you have multiple applications corresponding to different business data, you also need to create multiple environments. Currently, on the WeChat side (WeChat Developer Tools), you can create two free environments, and on the Tencent Cloud side, you can create one free environment.
Can different clients use the same resource environment?
Currently, environments created on the WeChat side support both mini-program and Web development, while environments created on the Tencent Cloud side currently only support Web development.
What to Do When the Environment's API Call Quota Reaches the Upper Limit
To ensure reasonable resource utilization, CloudBase imposes API call quotas on each environment. The call counts for each environment are calculated independently and counted on a daily basis.
- If the daily API call count exceeds 80% and 90%, notifications will be sent via different channels such as WeChat, SMS, in-site messages, email, etc. If you are developing mini-programs and this alarm is triggered by the WeChat side, the notification channel will be WeChat; otherwise, it will be Tencent Cloud. You can upgrade your environment version to enjoy more API call quotas, avoiding affecting the normal operation of your business.
- If the daily API call quota is exhausted, an error indicating "API call quota exceeded" will be returned when calling APIs. The quota will reset the next day, restoring normal operation.
What Is a CloudBase Environment, How to Switch Between Environments, and How Data Is Synchronized
To switch between different environments in the SDK, simply pass the corresponding env parameter during initialization. For cloud functions and file storage, CLI tools can be used to simplify the cross-environment data replication process. Currently, databases still need to be exported from the console and then imported into the target environment.
The Relationship Between Mini Program-Side CloudBase and Tencent Cloud-Side CloudBase
Both are supported by Tencent Cloud's cloud services, with the following current differences: Environments created on the mini-program side can be accessed from both ends (with the exception of cloud function management); environments created on the Tencent Cloud side can only be accessed from the Tencent Cloud side.
Whether CloudBase Can Be Managed Without Using the Cloud Console
Use the command-line tool provided by CloudBase to manage CloudBase resources.