aaron on Nostr: I've been thinking about implementing "virtual relays" in untethr.me code. They would ...
I've been thinking about implementing "virtual relays" in untethr.me code.
They would go like this. In your client, you would configure your relay to: `wss://nostr-relay.untethr.me/virtual/<any-string-you-make-up>`.
Then this becomes a silo, its own relay: only clients configured with this relay will see data from clients configured on this relay. (Unless of course someone consumes a message and publishes it again at the root relay or anywhere else.)
This will be really easy to implement efficiently (w/ no extra overhead) within the current relay code.
I'm not sure what clients do if someone were to configure multiple ones of these -- i.e., if a relay URL resolves to the same IP address. (Hopefully they just respect them.)
There are other variations of using URL paths to change behavior. For example:
`wss://nostr-relay.untethr.me/read-only`
`wss://nostr-relay.untethr.me/write-only`
`wss://nostr-relay.untethr.me/reactions-only`
...etc...
You get the idea.
Thoughts?
Published at
2023-01-22 03:38:27 UTCEvent JSON
{
"id": "e1506d0ffb06c342b4dd9c08f44c68912bb8383753c01b1b7a088d6e0140a662",
"pubkey": "aff9a9f017f32b2e8b60754a4102db9d9cf9ff2b967804b50e070780aa45c9a8",
"created_at": 1674358707,
"kind": 1,
"tags": [],
"content": "I've been thinking about implementing \"virtual relays\" in untethr.me code.\n\nThey would go like this. In your client, you would configure your relay to: `wss://nostr-relay.untethr.me/virtual/\u003cany-string-you-make-up\u003e`.\n\nThen this becomes a silo, its own relay: only clients configured with this relay will see data from clients configured on this relay. (Unless of course someone consumes a message and publishes it again at the root relay or anywhere else.)\n\nThis will be really easy to implement efficiently (w/ no extra overhead) within the current relay code.\n\nI'm not sure what clients do if someone were to configure multiple ones of these -- i.e., if a relay URL resolves to the same IP address. (Hopefully they just respect them.)\n\nThere are other variations of using URL paths to change behavior. For example:\n\n`wss://nostr-relay.untethr.me/read-only`\n`wss://nostr-relay.untethr.me/write-only`\n`wss://nostr-relay.untethr.me/reactions-only`\n\n...etc...\n\nYou get the idea.\n\nThoughts?",
"sig": "ce19ff561a913c6f177377d4e97903f1af686542f7aa104745408c00d50d9aee48365a4939c7f4fba599f2e5c79984c6ea48dd88db76393fe087de4a8fd3dd95"
}