Worker Deploy Order
Section titled “Worker Deploy Order”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.
1. Infrastructure layer
Section titled “1. Infrastructure layer”These workers have no upstream service dependencies and must be live before anything that calls them.
pnpm deploy:log-processorpnpm deploy:rate-limiter2. Enrichment
Section titled “2. Enrichment”Import enrichment is consumed by the ingestion pipeline. Deploy before ingestion workers.
pnpm deploy:import-enrichment3. Data workers
Section titled “3. Data workers”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.
pnpm deploy:publication-querypnpm deploy:publication-writepnpm deploy:authzpnpm deploy:person-querypnpm deploy:person-write4. Notification
Section titled “4. Notification”Consumes the notification queue. Must be live before ingestion workers start producing notifications.
pnpm deploy:notification5. Ingestion pipeline
Section titled “5. Ingestion pipeline”The process worker must be deployed before the orchestrator so that queue messages dispatched by the orchestrator always have a consumer ready.
pnpm deploy:ingestion-processpnpm deploy:ingestion-orchestrator6. Consumer API
Section titled “6. Consumer API”Deploy last — depends on the data workers being healthy.
pnpm deploy:consumer-apiDashboard and marketing site are in the Turborepo pipeline and are deployed separately.
pnpm deploy:dashboardpnpm deploy:marketingpnpm deploy:docsQuick reference — all commands
Section titled “Quick reference — all commands”# Infrastructurepnpm deploy:log-processorpnpm deploy:rate-limiter
# Enrichmentpnpm deploy:import-enrichment
# Datapnpm deploy:publication-querypnpm deploy:publication-writepnpm deploy:authzpnpm deploy:person-querypnpm deploy:person-write
# Notificationspnpm deploy:notification
# Ingestionpnpm deploy:ingestion-processpnpm deploy:ingestion-orchestrator
# Consumer APIpnpm deploy:consumer-api
# Appspnpm deploy:dashboardpnpm deploy:marketingpnpm deploy:docs