01 / DECISION
何時值得加入這個 primitive
當程式需要 Linux environment、特定 runtime、filesystem 或 Workers 不該模擬的 resource profile 時使用 Containers。
02 / ARCHITECTURE
建立最小且站得住腳的路徑
讓 Worker 負責 authenticate 與 route、推導 stable container ownership、限制 instance resources 與 concurrency、處理 startup,並公開 health 與 shutdown。
- 01先命名 contract
當程式需要 Linux environment、特定 runtime、filesystem 或 Workers 不該模擬的 resource profile 時使用 Containers。
- 02只加入一個 primitive
讓 Worker 負責 authenticate 與 route、推導 stable container ownership、限制 instance resources 與 concurrency、處理 startup,並公開 health 與 shutdown。
- 03保留 failure evidence
可重現 build、掃描 dependencies、測試 cold start 與 health failure、限制 resource use,並證明 Worker 拒絕 unauthorized routing。
03 / REPRODUCE
有證據,再有信心
可重現 build、掃描 dependencies、測試 cold start 與 health failure、限制 resource use,並證明 Worker 拒絕 unauthorized routing。
npx wrangler containers list 04 / BOUNDARY
Production boundary
Container image 會擴大 patch 與 supply-chain surface;local disk 與 process state 需要明確 durability assumption。
05 / FIRST-PARTY SOURCES
讓第一方來源保持權威
產品行為、限制、價格與供應狀態會改變;採取行動前請重新核對這些來源。