toby357
12/13/2022, 11:46 AMmim
12/13/2022, 11:57 AMmim
12/13/2022, 11:58 AMHardAtWork
12/13/2022, 11:59 AMHardAtWork
12/13/2022, 12:00 PMjohn.spurlock
12/13/2022, 9:33 PMlocationHint
param to namespace.get
and see the differenceHardAtWork
12/13/2022, 9:35 PMJames
12/13/2022, 9:36 PMjohn.spurlock
12/13/2022, 9:38 PMHardAtWork
12/13/2022, 9:38 PMjohn.spurlock
12/13/2022, 9:42 PMbrett
12/13/2022, 9:55 PMbrett
12/13/2022, 9:55 PMHardAtWork
12/13/2022, 9:56 PMnclevenger
12/14/2022, 12:42 AMbrett
12/14/2022, 12:45 AMnclevenger
12/14/2022, 12:48 AMcnam
... as that's better coverage / performance for overall US coveragejed
12/14/2022, 2:03 AMjs
let id = OBJECT_NAMESPACE.newUniqueId({jurisdiction: 'eu'})
let stub = OBJECT_NAMESPACE.get(id, {locationHint: 'afr'})
🤔jed
12/14/2022, 2:05 AMUnsmart | Tech debt
12/14/2022, 2:31 AMUnsmart | Tech debt
12/14/2022, 2:34 AMChaika
12/14/2022, 2:35 AMUnsmart | Tech debt
12/14/2022, 2:36 AMUnsmart | Tech debt
12/14/2022, 2:36 AMbrett
12/14/2022, 3:18 PMnewUniqueId
is because the Jurisdiction is encoded in the ID itself. idFromName
actors can't really encode something like a Jurisdiction in the ID -- or at least so far we've decided it would confuse people that NS.idFromName("foo", {jurisdiction:"eu"})
and NS.idFromName("foo", {jurisdiction:"bar"})
are (forever) different objects.
Another factor is that locationHint
is more of a dynamic thing, we expect hints could change (just like object locations will in the future), but the underlying object is the same. Again: not true for Jurisdictions, which are a constant fact about the object forever.HardAtWork
12/14/2022, 3:20 PMbrett
12/14/2022, 3:21 PMlocationHint
is a valid choice it won't throw an error. This is because it's a hint, and especially important because currently objects don't relocate, and so if you created one in ENAM but then did locationHint: "apac"
we don't want that to be an error