Skip to content

Conversation

@dinasaur404
Copy link
Contributor

Summary

Updated documentation to include dynamic dispatch Worker description and use cases.

Screenshots (optional)

image

Documentation checklist

Copy link
Contributor

@irvinebroque irvinebroque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love the use cases

### 4. Create a dynamic dispatch Worker

[Dispatch Workers](/cloudflare-for-platforms/workers-for-platforms/reference/how-workers-for-platforms-works/#dynamic-dispatch-worker) are used to execute user Workers from the dispatch namespace. You will now create a dispatch Worker and add logic it needs to route to the user Worker created in step 2.
A [dynamic dispatch Worker](/cloudflare-for-platforms/workers-for-platforms/reference/how-workers-for-platforms-works/#dynamic-dispatch-worker) is a specialized routing Worker that directs incoming requests to the appropriate user Workers in your dispatch namespace. Instead of using traditional route mappings, dispatch Workers let you programmatically control request routing through code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

traditional route mappings

just link to Workers routes?

https://developers.cloudflare.com/workers/configuration/routing/routes/

@dinasaur404 dinasaur404 force-pushed the update-dispatch-worker-docs branch from 5302cf4 to 2c2fb0e Compare January 15, 2025 20:39
```

### 4. Create a dispatch Worker
### 4. Create a dynamic dispatch Worker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never loved this "dispatch Worker" phrasing. It makes it seem like this Worker is special, when it really isn't, and I've seen that confuse users a few times now. This is just a regular Worker which happens to have a WfP namespace binding. I can choose to call a user Worker in that namespace, possibly with a request over fetch. But I don't have to, and it's not like I concede everything over to it when I do so. I can do other stuff before and after calling it! I can do RPC!

It's fine in a guide specifically about how to create a hosting platform where this request-delegation is the pattern, but using it as the "getting started" guide for all of Workers for Platforms does WfP a disservice, imo. It doesn't very accurately portray a setup for hosted bots, or LLM-authored script isolation/tool calling or anything like that.

dinasaur404 and others added 3 commits January 17, 2025 11:19
…s/get-started/configuration.mdx

Co-authored-by: Denise Peña <[email protected]>
…s/get-started/configuration.mdx

Co-authored-by: Denise Peña <[email protected]>
…s/get-started/configuration.mdx

Co-authored-by: Denise Peña <[email protected]>
@dinasaur404 dinasaur404 requested a review from dcpena January 17, 2025 16:21
@RebeccaTamachiro RebeccaTamachiro merged commit 1846f1e into cloudflare:production Jan 22, 2025
6 checks passed
@workers-devprod workers-devprod added the contribution [Holopin] Recognizes a docs contribution, big or small label Jan 22, 2025
@holopin-bot
Copy link

holopin-bot bot commented Jan 22, 2025

Congratulations @dinasaur404, the maintainer of this repository has issued you a holobyte! Here it is: https://holopin.io/holobyte/cm67xr61m39620cjmbx58d5k6

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution [Holopin] Recognizes a docs contribution, big or small product:cloudflare-for-platforms size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants