Skip to content

Commit 758d773

Browse files
fix(relay): run the relay Worker next to its database (pingdotgg#22065)
Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent d652490 commit 758d773

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎infra/relay/src/worker.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ export const layer = Api.make(
118118
date: "2026-05-22",
119119
flags: ["nodejs_compat"],
120120
},
121+
// Requests run several Postgres queries in sequence. At the user's edge
122+
// each one paid the round trip to the database (~300 ms from JNB); next
123+
// to PlanetScale `us-west` the request pays that distance once.
124+
placement: { region: "aws:us-west-2" },
121125
domain: relayPublicDomain,
122126
})),
123127
Effect.orDie,

0 commit comments

Comments
 (0)