Effects & capabilities
Effects are explicit and capability-gated: a handler declares what it needs via
given, providers supply implementations, and adapters wrap the host boundary.
Understand
- Understand the capability model
- Synchronous and asynchronous sends
- What a join guarantees on failure
- What a timeout stops
Do
- Run independent calls at the same time
- Bound how long a call may take
- Ask two sources and take the first answer
- Share a handler step that logs or queries
- Compose a provider from other capabilities
- Share a capability across contexts
- Wrap a library as an adapter
- Use more than one KV namespace
- Call a Worker outside the project
- Call an mTLS origin
- Read your analytics in the Worker
- Query rows into a record without repeating the columns
- Connect an existing Postgres database
- Connect an existing MySQL database
- Apply webhook events that arrive late, twice or out of order
- Cache responses at Cloudflare’s edge
- Run a model from a Worker
- Run a container from a Worker
- Answer questions from your documents with AI Search
- Call Workers AI through an adapter
- Search by meaning with Vectorize and Workers AI
- Sign and verify data
See also: Reference — Capabilities & providers, Adapters.