Skip to content

Workers Deployment Status

This document tracks the deployment status of all Cloudflare Workers in the Prego monorepo.

English

Currently Deployed Workers

WorkerDashboard NameStatusBindingsNotes
apps/admin-webadmin-webDeployedAssets, R2 (admin-cache), ServiceOpenNext; tenant onboarding & admin shell
apps/employee-webemployee-webDeployedAssets, R2 (employee-cache, static-assets), ServiceOpenNext; employee portal

Note: control-plane Worker is deployed from the separate prego-control-plane repository.

Undeployed Workers (Code Only)

These Workers have wrangler configuration but are not yet deployed to Cloudflare:

Email System

WorkerPurposeBindingsDeployment Decision
email-queue-gatewayHTTP POST → Queue producerQueue (email-queue)Deploy when email system goes live
mail-senderQueue consumer → Resend APIQueue (email-queue)Deploy with email-queue-gateway

Usage & Billing

WorkerPurposeBindingsCronDeployment Decision
workers/usage-writerUsage events → R2R2 (usage-raw)Phase 2 (usage metering)
workers/usage-aggregatorR2 → D1 rollupsD1, R2*/15 * * * *Phase 2 (usage metering)
workers/cycle-closeBilling cycle closeD10 0 1 * *Phase 2 (billing overage)

Infrastructure

WorkerPurposeBindingsCronDeployment Decision
workers/autoscalerHealth Score, Scale Out/InD1*/10 * * * *Phase 3 (auto-scaling)
workers/tenant-routerHostname → KV → proxyKV (TENANT_ORIGINS)Phase 3 (multi-tenant routing)
workers/purge-jobPDPA Hard PurgeD1, R20 2 * * *Phase 3 (data retention)

Legacy / Deprecated

WorkerPurposeStatus
workers/control-planeStub for control-planeDeprecated — use prego-control-plane repo
apps/auth-workerJWT authentication, OTPReview — may be integrated into Zuplo or control-plane

Configuration Notes

D1 Database ID Placeholder

Workers using D1 have placeholder IDs that must be replaced before deployment:

database_id = "REPLACE_WITH_D1_DATABASE_ID"

Use the production main-db ID: d354c923-bd21-4b13-b32c-a7f8b52a4eb1

KV Namespace ID Placeholder

tenant-router has a placeholder KV ID:

id = "REPLACE_WITH_KV_NAMESPACE_ID"

Create namespace with: wrangler kv namespace create "TENANT_ORIGINS"


한국어

현재 배포된 Workers

WorkerDashboard 이름상태바인딩비고
apps/admin-webadmin-web배포됨Assets, R2 (admin-cache), ServiceOpenNext; 테넌트 온보딩 & 관리자 셸
apps/employee-webemployee-web배포됨Assets, R2 (employee-cache, static-assets), ServiceOpenNext; 직원 포털

참고: control-plane Worker는 별도 prego-control-plane 저장소에서 배포됨.

미배포 Workers (코드만 존재)

다음 Workers는 wrangler 설정이 있으나 아직 Cloudflare에 배포되지 않음:

이메일 시스템

Worker용도바인딩배포 결정
email-queue-gatewayHTTP POST → Queue 프로듀서Queue (email-queue)이메일 시스템 가동 시 배포
mail-senderQueue 컨슈머 → Resend APIQueue (email-queue)email-queue-gateway와 함께 배포

사용량 & 빌링

Worker용도바인딩Cron배포 결정
workers/usage-writer사용량 이벤트 → R2R2 (usage-raw)Phase 2 (사용량 측정)
workers/usage-aggregatorR2 → D1 롤업D1, R2*/15 * * * *Phase 2 (사용량 측정)
workers/cycle-close빌링 주기 마감D10 0 1 * *Phase 2 (초과 요금)

인프라

Worker용도바인딩Cron배포 결정
workers/autoscaler헬스 스코어, Scale Out/InD1*/10 * * * *Phase 3 (자동 스케일링)
workers/tenant-router호스트명 → KV → 프록시KV (TENANT_ORIGINS)Phase 3 (멀티테넌트 라우팅)
workers/purge-jobPDPA 하드 삭제D1, R20 2 * * *Phase 3 (데이터 보존)

레거시 / 폐기 예정

Worker용도상태
workers/control-planecontrol-plane 스텁폐기prego-control-plane 리포 사용
apps/auth-workerJWT 인증, OTP검토 필요 — Zuplo 또는 control-plane에 통합 가능

설정 참고사항

D1 데이터베이스 ID 플레이스홀더

D1을 사용하는 Workers는 배포 전 플레이스홀더 ID를 교체해야 함:

database_id = "REPLACE_WITH_D1_DATABASE_ID"

프로덕션 main-db ID 사용: d354c923-bd21-4b13-b32c-a7f8b52a4eb1

KV 네임스페이스 ID 플레이스홀더

tenant-router는 플레이스홀더 KV ID가 있음:

id = "REPLACE_WITH_KV_NAMESPACE_ID"

네임스페이스 생성: wrangler kv namespace create "TENANT_ORIGINS"


Help