Repository navigation
Description
Part of #294.
Question
Which cloud hosts Patchy through the tier 2 build, and where does company Postgres live? The Neon research (#354 (comment)) made this a decision: Neon is AWS-only now, no cloud credit pays for it, and it fits ADR-0009 unchanged, so choosing it while the containers stay on Azure buys a cross-cloud hop on every callback for the whole Azure period. Azure's remaining argument is its credit balance, and its subscription refuses managed Postgres in eastus and eastus2 (provisioning).
Product context. Nothing is in production. The execution-service spike (#311) is about to run on Azure Container Apps and its ADR (#298) will name the containment unit and the wake path; those are shaped by the cloud they run on.
Inputs Allison brings: the remaining Azure credit and its expiry, the Neon grant's balance and expiry, and the AWS credit.
What lifts to AWS and what does not (the session's audit of the code and the map, 2026-09-23):
- Code: only the Azure Blob layer in
packages/content-storeis Azure-specific, behind the store interface beside a filesystem layer; an S3 layer is one file plus an IAM role. No Container Apps env vars, Key Vault or Azure headers anywhere else. Postgres, Clerk and PostHog are neutral. - Plan: one workerd process per company in a scale-to-zero container is Container Apps shaped. Fargate has no request-driven wake: keep a task warm per company, build a wake path in the broker with a 30 to 60 s cold start, or pool companies and give up the company as the containment unit. This is the one real flag.
- Plan: the seven-document HTTP/2 check and fetch-streamed SSE were proven on Container Apps ingress; an ALB needs its idle timeout raised from 60 s and the check re-run, not a redesign.
- Easier on AWS: egress lockdown is a security group with no outbound rule (Azure needed a workload-profiles VNet environment that never finished provisioning); the isolation escalation is one Fargate task per company, AWS's documented kernel boundary; Neon becomes intra-region.
- Cost of moving: whatever Azure credit is forfeited; the Azure Terraform outside the repo is rewritten; the spike group is disposable at about $20 a month.
- The Postgres refusal itself is a subscription limit lifted by a support request; it is evidence Azure is awkward, not that it cannot host us.
Consequences. Move now: the spike runs on ECS Fargate against Neon us-east-1, the ADR names Fargate's wake path, and the database never migrates. Stay: the spike runs as planned on Container Apps, Postgres is Flexible Server in centralus (28 ms away, one dump/restore at the later move) or Neon cross-cloud after a measured latency test, and the ADR must name Fargate's wake path anyway so the later move is not a redesign.
Recommendation. If the remaining Azure credit is modest, move now, before the spike bakes Container Apps shapes into the ADR; put Neon in us-east-1 at 1 CU always-on on direct connections, pre-warmed when a tier 2 document opens, with RDS as the fallback if the Neon runway is short. If the Azure credit is large, stay, take Flexible Server in centralus for now, and write the Fargate wake path into the ADR as the portable shape.
Output: the decision recorded here, the map's hosting note rewritten, and #311's target cloud fixed before it starts.
Activity
allisonmahmood commentedon Sep 25, 2026
Resolution
One round with Allison on 2026-09-25, pressure-tested by astra beforehand (brief and reply kept off the tracker; the useful parts are folded in below). Allison had reviewed the credit balances herself: there is plenty on Azure, AWS and Neon, so the balances did not decide this. She chose AWS and Neon outright; the Azure credit goes to other things.
Decided
us-east-1, and its ADR names Fargate's shapes as the model. Nothing from this repo has ever been deployed, so nothing migrates. The Azure grouprg-patchy-prodbelongs to an earlier, separate Patchy codebase (a kernel and web pair with Daytona sandboxes, created 2026-07-01 before this repo existed); it is not this project's production and this map says nothing about it. PatchPage stays on Azure and keeps spending that credit.us-east-1, one project, one database per company, exactly ADR-0009 on direct connections. The production compute runs with suspend disabled so the five-second held transaction never meets a cold start; the compute is pre-warmed when a tier 2 document opens as a free win on top. Neon's own grant pays for it; Allison also expects to use Neon for other things. RDS stays named as the plain-Postgres fallback and is not provisioned.What astra pushed on and where it landed
What this changes on the map
us-east-1, the Neon project, keys under~/.config/patchy-cloud/) and retires the Azure spike group; it blocks the spike the way the Azure provisioning did.Recorded by Claude Fable 5.1 via Claude Code, 2026-09-25.
chore(skills): add Neon agent skills (#377)