cesardias on Nostr: No really, I actually hacking around observable way before rx-nostr, I am not ...
No really, I actually hacking around observable way before rx-nostr, I am not familiar with their implementation but I don't think they put the outbox model in mind like I did, one of the differences is that I treat relays as observables instead of arrays, therefor I can "start" a subscriptions without even know which relays is going to, this makes a lot of sense for the outbox model as I start the subscription with the relays "I know" and slowly push new relays to the stream based on author filters on the fly. So no need to know the relays before hand or wrap things in promises (I barely have any promises on my codebase)
I can kinda do all of that without a single if statement or imperative code, and also very easy to write unit tests
Published at
2025-01-16 20:21:35Event JSON
{
"id": "89625118d3bfa7019526206557f29742b0d85e444188fac72c212cd3a835ce4e",
"pubkey": "c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e",
"created_at": 1737058895,
"kind": 1,
"tags": [
[
"e",
"9340705cf1189250af86d104d39ddbd4f009ceacf19b47c87da4f59db2a65b66",
"wss://nos.lol",
"root",
"c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e"
],
[
"e",
"28d8d5a6bc02d8c7991c0a7fead4b3fd8a219ce5393824f150de537567a3f49f",
"wss://nostr.mom",
"reply",
"3356de61b39647931ce8b2140b2bab837e0810c0ef515bbe92de0248040b8bdd"
],
[
"p",
"3356de61b39647931ce8b2140b2bab837e0810c0ef515bbe92de0248040b8bdd"
],
[
"client",
"nosotros",
"31990:c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e:1728437063755"
]
],
"content": "No really, I actually hacking around observable way before rx-nostr, I am not familiar with their implementation but I don't think they put the outbox model in mind like I did, one of the differences is that I treat relays as observables instead of arrays, therefor I can \"start\" a subscriptions without even know which relays is going to, this makes a lot of sense for the outbox model as I start the subscription with the relays \"I know\" and slowly push new relays to the stream based on author filters on the fly. So no need to know the relays before hand or wrap things in promises (I barely have any promises on my codebase)\n\nI can kinda do all of that without a single if statement or imperative code, and also very easy to write unit tests",
"sig": "540d905534b227ddcf2add63b78a25049d5299bf3b3a19c693ed97efd7eeb75a0da9b65a96bb2055f3a7e1afa71875e0ad9e7dcd648136a20b56c73326c0a3cf"
}