Cloudflare Docs
Workers
Workers
Visit Workers on GitHub
Set theme to dark (⇧+D)

Workers Services

Workers Services are the building blocks for deploying applications on Cloudflare Workers.

Workers Services are scripts that can contain bindings to KV stores, Durable Objects, or other services, as well as environment variables and secrets.

A Workers Service is composable, which allows Workers Services to talk to each other. This opens up the ability to develop new kinds of microservices like: routers, middlewares, deployment managers, or traffic gateways.

To understand Workers Services better, it will help to know about Bindings and Deployments.

​​ Bindings

Bindings allow your Workers to interact with resources on the Workers platform. Bindings can be configured by logging in to the Cloudflare dashboard > Account Home > Workers > your Worker > Settings> Variables. Bindings also provide a security model for interacting with those resources. Workers only have access to other resources that are explicitly defined as a binding in configuration.

There are multiple types of bindings available today:

  1. Service bindings for communication with another Worker.
  2. KV namespace bindings for communication between a Worker and a KV namespace.
  3. R2 bucket bindings for communication between a Worker and an R2 bucket.
  4. Durable Object bindings for communication between a Worker and a Durable Object.
  5. Queue bindings for communication between a Worker and a Queue.

​​ Deployments

Deployments are an audit log of static historical versions of your Worker. They include the bundled code, configuration, and bindings associated with your Worker at a given point in time. A change to any of these will trigger a new deployment on Cloudflare’s network.

Read more about Deployments.

​​ Service environments

We have temporarily disabled the creation of Service Environments while we are improving this feature.

We recommend leveraging Deployments in place of Environments.