How Many Durable Object Instances Can Be Created?

What is the name of the domain?

N/A (This issue is not domain-specific; it concerns Cloudflare Durable Objects platform limits.)

What is the error number?

N/A (No specific error number encountered.)

What is the error message?

N/A (There is no explicit error message; this is a question about platform limitations.)

What is the issue you’re encountering

I am trying to use Durable Objects to handle over a million records in the built-in SQLITE database, processing them via the alarm method. Due to SQLITE’s limitation of binding a maximum of 100 variables per SQL statement, I need to distribute the data processing workload across multiple Durable Object instances. However, I cannot find clear documentation about the maximum number of Durable Object instances that can be created per class or in total. Only know, How many Durable Object Instances can be created?

What steps have you taken to resolve the issue?

  • I reviewed the official Cloudflare documentation, especially the platform limits page.

  • I searched for references to instance limits for Durable Objects but only found information about class limits (100 classes for the free plan, 500 for the paid plan).

What are the steps to reproduce the issue?

  1. Create a Durable Object class that manages a large number of records using the built-in SQLITE database.

  2. Attempt to process more than 100 variables per SQL statement and observe the SQLITE limitation.

  3. Try to distribute processing by creating and using a large number of Durable Object instances.

  4. Seek clarification on whether there is a platform-imposed limit on the number of Durable Object instances that can be created.

The Limits page of the documentation says the number of instances is unlimited.

I think I misunderstood the concept. Thanks for your reply.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.