Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(relay): run the relay Worker next to its database #22065

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/22065/headmerged by juliusmarminge View on GitHub

Showing 1 changed file with 4 additions and 0 deletions.

x
0 of 1 viewed, 1 left
4 additions and 0 deletionsinfra/relay/src/worker.tsModified
View file
@@ -117,6 +117,10 @@
date: "2026-05-22",
flags: ["nodejs_compat"],
+ // Requests run several Postgres queries in sequence. At the user's edge
+ // each one paid the round trip to the database (~300 ms from JNB); next
+ // to PlanetScale `us-west` the request pays that distance once.
+ placement: { region: "aws:us-west-2" },
domain: relayPublicDomain,
})),
Effect.orDie,