-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[DO] FT + SRS GA Docs #20938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[DO] FT + SRS GA Docs #20938
Changes from 38 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
aac5ff5
[DO] Squashing commits
Oxyjun 58dbd64
Update src/content/docs/durable-objects/features/access-durable-objec…
Oxyjun a15e7e1
Implementing first round of feedback.
Oxyjun 84bb517
Fixing broken links
Oxyjun 0f62f5f
Merge commit 'f202b11ff9e6cb29309ec9a2a5b1c5898775fb47' into jun/do/f…
Oxyjun f38b62f
Keeping the sidebar as "Best practices".
Oxyjun 7d0c814
Matching HEAD, resolving conflicts.
Oxyjun 3bedee4
Manually capturing potential conflict.
Oxyjun 58600bf
Sticking with 'best practices' as sidebar.
Oxyjun c847807
Removing infinite redirect
Oxyjun c8e0f01
Removing storage per account for SQLite DO limits
Oxyjun 5c9ea0d
pm edits for sqlite ga
vy-ton 3e38d21
pm edits for pricing & limits
vy-ton 4b60e00
add note now sql storage billing
vy-ton 00a1682
Merging `sql-storage` into `storage-api` chapter.
Oxyjun 5d5ad91
Adding a note about local / remote development.
Oxyjun 52a9c76
Merge commit '4bdf47a2b13b1e2f64fb1694a2db7bebdd809aa9' into jun/do/f…
Oxyjun 670a36a
Updating footnote wording.
Oxyjun dc6c11c
Adding `migrations` to inheritable fields for
Oxyjun b4dd1a9
Merge commit '92af7a0c4f213dcc3f7a0cf3c0d93fe54882e7ac' into jun/do/f…
Oxyjun 1d0db3e
Specifying what the changes are.
Oxyjun 6a56e07
DO cleanup, adding table of APIs in storage-api.
Oxyjun 41a5b0c
Explicitly stating product inside partial.
Oxyjun 9d23c24
add changelogs
vy-ton 2735451
add code to changelogs
vy-ton e33f371
pm re-structuring
vy-ton 4a1c653
fix compile issue
vy-ton 9ee4572
fix components
vy-ton e4b721b
Apply suggestions from code review
Oxyjun d9efb1d
Adding bookmark in glossary, referencing it in
Oxyjun 61672ca
Accepting PCX Review part 1
Oxyjun 4f85f28
Accepting PCX Review part 2
Oxyjun 68ccf02
Merge branch 'jun/do/ft-srs-ga-2' of github.com:cloudflare/cloudflare…
Oxyjun 567a160
Adding text in anticipation of the DtC button.
Oxyjun 6ab6f95
pm fixup
vy-ton d5e5a95
Importing missing Render component.
Oxyjun 00f52bb
add deploy button, release notes, small fixups
vy-ton f83fd9c
update changelog deploy button url
vy-ton 480c0b2
fix spacing and add link
vy-ton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
src/content/changelog/durable-objects/2025-04-07-durable-objects-free-tier.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| --- | ||
| title: Durable Objects on Workers Free plan | ||
| description: Durable Objects now available on Workers Free plan. | ||
| products: | ||
| - durable-objects | ||
| - workers | ||
| date: 2025-04-07T06:00:00Z | ||
| --- | ||
|
|
||
| Durable Objects can now be used with zero commitment on the [Workers Free plan](/workers/platform/pricing/) allowing you to build AI agents with [Agents SDK](/agents/), collaboration tools, and real-time applications like chat or multiplayer games. | ||
|
|
||
| Durable Objects let you build stateful, serverless applications with millions of tiny coordination instances that run your application code alongside (in the same thread!) your durable storage. Each Durable Object can access its own SQLite database through a [Storage API](/durable-objects/best-practices/access-durable-objects-storage/). A Durable Object class is defined in a Worker script encapsulating the Durable Object's behavior when accessed from a Worker. To try the code below, click the button: | ||
|
|
||
| [](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/templates/tree/staging/hello-world-do-template) | ||
|
|
||
| ```js | ||
| import { DurableObject } from "cloudflare:workers"; | ||
|
|
||
| // Durable Object | ||
| export class MyDurableObject extends DurableObject { | ||
| ... | ||
|
|
||
| async sayHello(name) { | ||
| return `Hello, ${name}!`; | ||
| } | ||
| } | ||
|
|
||
| // Worker | ||
| export default { | ||
| async fetch(request, env) { | ||
| // Every unique ID refers to an individual instance of the Durable Object class | ||
| const id = env.MY_DURABLE_OBJECT.idFromName("foo"); | ||
|
|
||
| // A stub is a client used to invoke methods on the Durable Object | ||
| const stub = env.MY_DURABLE_OBJECT.get(id); | ||
|
|
||
| // Methods on the Durable Object are invoked via the stub | ||
| const response = await stub.sayHello("world"); | ||
|
|
||
| return response; | ||
| }, | ||
| }; | ||
| ``` | ||
|
|
||
| Free plan [limits](/durable-objects/platform/pricing/) apply to Durable Objects compute and storage usage. Limits allow developers to build real-world applications, with every Worker request able to call a Durable Object on the free plan. | ||
|
|
||
| For more information, checkout: | ||
| - [Documentation](/durable-objects/what-are-durable-objects/) | ||
| - [Zero-latency SQLite storage in every Durable Object blog](https://blog.cloudflare.com/sqlite-in-durable-objects/) |
33 changes: 33 additions & 0 deletions
33
src/content/changelog/durable-objects/2025-04-07-sqlite-in-durable-objects-ga.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| --- | ||
| title: SQLite in Durable Objects GA with 10GB storage per object | ||
| description: SQLite-backed Durable Objects are generally available. | ||
| products: | ||
| - durable-objects | ||
| - workers | ||
| date: 2025-04-07T06:00:00Z | ||
| --- | ||
|
|
||
| SQLite in Durable Objects is now generally available (GA) with 10GB SQLite database per Durable Object. Since the [public beta](https://blog.cloudflare.com/sqlite-in-durable-objects/) in September 2024, we've added feature parity and robustness for the SQLite storage backend compared to the preexisting key-value (KV) storage backend for Durable Objects. | ||
|
|
||
| SQLite-backed Durable Objects are recommended for all new Durable Object classes, using `new_sqlite_classes` [Wrangler configuration](/durable-objects/best-practices/access-durable-objects-storage/#create-sqlite-backed-durable-object-class). Only SQLite-backed Durable Objects have access to Storage API's [SQL](/durable-objects/api/storage-api/#sql-api) and [point-in-time recovery](/durable-objects/api/storage-api/#pitr-point-in-time-recovery-api) methods, which provide relational data modeling, SQL querying, and better data management. | ||
|
|
||
| ```js | ||
| export class MyDurableObject extends DurableObject { | ||
| sql: SqlStorage | ||
| constructor(ctx: DurableObjectState, env: Env) { | ||
| super(ctx, env); | ||
| this.sql = ctx.storage.sql; | ||
| } | ||
|
|
||
| async sayHello() { | ||
| let result = this.sql | ||
| .exec("SELECT 'Hello, World!' AS greeting") | ||
| .one(); | ||
| return result.greeting; | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| KV-backed Durable Objects remain for backwards compatibility, and a migration path from key-value storage to SQL storage for existing Durable Object classes will be offered in the future. | ||
|
|
||
| For more details on SQLite storage, checkout [Zero-latency SQLite storage in every Durable Object blog](https://blog.cloudflare.com/sqlite-in-durable-objects/). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.