Skip to content

Commit c6b3b83

Browse files
Oxyjunvy-ton
andauthored
Apply suggestions from code review
Co-authored-by: Vy Ton <[email protected]>
1 parent e75c31c commit c6b3b83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/content/docs/durable-objects/api/base.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class MyDurableObject extends DurableObject {
3333

3434
- This method can be `async`.
3535

36-
- Refer to [Invoke methods](/durable-objects/best-practices/create-durable-object-stubs-and-send-requests/) for more information on best practices when using this method.
36+
- Durable Objects support [RPC calls](/durable-objects/best-practices/create-durable-object-stubs-and-send-requests/) as of a compatibility date greater or equal to [2024-04-03](https://developers.cloudflare.com/workers/configuration/compatibility-flags/#durable-object-stubs-and-service-bindings-support-rpc). Users should call RPC methods over fetch() if their application design does not follow HTTP request/response flow.
3737

3838
### `alarm`
3939

src/content/docs/durable-objects/best-practices/create-durable-object-stubs-and-send-requests.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Render, Tabs, TabItem, GlossaryTooltip } from "~/components";
1111

1212
All new projects and existing projects with a compatibility date greater than or equal to [`2024-04-03`](/workers/configuration/compatibility-flags/#durable-object-stubs-and-service-bindings-support-rpc) should prefer to invoke [Remote Procedure Call (RPC)](/workers/runtime-apis/rpc/) methods defined on a <GlossaryTooltip term="Durable Object class">Durable Object class</GlossaryTooltip>.
1313

14-
Projects requiring HTTP request/response flows, or legacy projects can continue to invoke the `fetch` handler on the Durable Object class indefinitely.
14+
Projects requiring HTTP request/response flows or legacy projects can continue to invoke the `fetch` handler on the Durable Object class.
1515

1616
### Invoke RPC methods
1717

0 commit comments

Comments
 (0)