We've got a plan for everyone.
- The minimum charge for business plan is $5/day. This doesn't include file storage space or file traffic.
Which plan should I choose?
Developer: Offers free trial for most of the produces provided by LeanCloud. Best for development and prototype stage of a product.
Business: Offers high performance and high availability for business needs. Best for most formally launched apps.
Enterprise: Offers tailored solutions for enterprises with custom needs or integrating legacy systems. Best for those who have special needs for deployment methods.
Can I switch between different plans?
Apps with business plans and developer plans are hosted on different clusters, so there is a cost on us to migrate data between different clusters. If you just upgraded your app from developer plan to business plan, you have to wait for at least 30 days to switch back. This only applies to those operated by yourself and doesn’t apply to those operated automatically according to certain rules.
Which services are charged? Which are free?
Charged services include database, file storage, CDN, instant messaging, SMS, and LeanEngine. You can use certain amount of each if you are using developer plan. We also offer a number of free services including push notifications, user management, in-app socializing, and ChatKit for building messaging apps.
For business plan, what does it mean by "minimum charge"?
The minimum charge covers our cost of technical support and daily operation. For apps with business plans, if you spend less than minimum charge a day, the minimum charge will be billed. Otherwise, the actual charge will be billed.
For instant messaging, how do you calculate DAU? If a user logs in for multiple times a day, does it count as a single DAU?
As long as the user uses the same ID, it will be considered as a single DAU.
When using database, how do you calculate number of requests?
The SDK designed for each language interacts with the same REST API and the time REST API is requested will be used to calculate price. For most cases, a creation, update, or query constitutes a single request, but there are cases when a batch operation triggers multiple requests.
What does it mean by "threads"? How many threads do I need?
Thread means the number of requests the cloud can process at a time. In general, 3 threads would be enough for most apps to work smoothly.
Assuming that the response time of the cloud is 20 milliseconds, so the cloud can process 1,000 / 20 = 50 requests on each thread every second.
For an app with 10,000 DAU, if each user generates 50 requests and all these users use the app within the same 2 hours everyday, there will be 10,000 × 50 / 2 / 60 / 60 = 69 requests happening in every second. Therefore, only 69 / 50 = 1.15 threads are needed to process all the requests happening in these 2 hours.
With the possible peaks considered, there should be certain redundancy left for your app. For apps with business plans, 60 threads are provided by default, but you can contact us to have it adjusted if needed.
For developer plan, what will happen if I use more resources than allocated?
For Database API, if more than 30,000 requests are made to an app, further requests will be rejected with error code 429. The limit is reset everyday.
For Threads, if all 3 of them are occupied, further requests will be rejected with error code 429. The limit gets removed when at least one of them is freed up.
For instant messaging, when DAU reaches 500, users will not be able to log in. The limit is reset everyday.
For SMS and file storage, both of them gets charged according to actual usage. Apps with developer plan can use them without any restrictions.