Skip to content

Worker Deploy Order

Migrated from root technical docs.

Deploy workers in the order below. Each group can be deployed independently, but within a group the listed order matters due to service dependencies.

Run pnpm deploy:all to deploy all workers + apps in one shot via scripts/deploy/index.mjs.


These workers have no upstream service dependencies and must be live before anything that calls them.

Terminal window
pnpm deploy:log-processor
pnpm deploy:rate-limiter

Import enrichment is consumed by the ingestion pipeline. Deploy before ingestion workers.

Terminal window
pnpm deploy:import-enrichment

Read and write workers for publications and people. Deploy query workers before write workers so that any in-flight reads degrade gracefully if a write worker briefly rolls.

Terminal window
pnpm deploy:publication-query
pnpm deploy:publication-write
pnpm deploy:authz
pnpm deploy:person-query
pnpm deploy:person-write

Consumes the notification queue. Must be live before ingestion workers start producing notifications.

Terminal window
pnpm deploy:notification

The process worker must be deployed before the orchestrator so that queue messages dispatched by the orchestrator always have a consumer ready.

Terminal window
pnpm deploy:ingestion-process
pnpm deploy:ingestion-orchestrator

Deploy last — depends on the data workers being healthy.

Terminal window
pnpm deploy:consumer-api

Dashboard and marketing site are in the Turborepo pipeline and are deployed separately.

Terminal window
pnpm deploy:dashboard
pnpm deploy:marketing
pnpm deploy:docs

Terminal window
# Infrastructure
pnpm deploy:log-processor
pnpm deploy:rate-limiter
# Enrichment
pnpm deploy:import-enrichment
# Data
pnpm deploy:publication-query
pnpm deploy:publication-write
pnpm deploy:authz
pnpm deploy:person-query
pnpm deploy:person-write
# Notifications
pnpm deploy:notification
# Ingestion
pnpm deploy:ingestion-process
pnpm deploy:ingestion-orchestrator
# Consumer API
pnpm deploy:consumer-api
# Apps
pnpm deploy:dashboard
pnpm deploy:marketing
pnpm deploy:docs