cesardias on Nostr: Yes, relayFilters stream approach was something that I came up with the outbox in ...
Yes, relayFilters stream approach was something that I came up with the outbox in mind, it's been very useful and easy to split filters of a single subscription, I also designed in a way to work batching multiple unrelated subscriptions together, everything becomes a queue at the end consumed by the start() operators, this approach has been working really well for me and haven't touch much in a while.
rx-nostr is indeed too tightly coupled and when I started my mind was mainly focus on the batcher.
The way I been designing things is the core the be completely stateless and lazy, you can create a subscription and the core will never initiate any subscription for you, just like rxjs itself wouldn't, it just gives you the building blocks.
Published at
2025-03-26 20:53:32Event JSON
{
"id": "92a82b1f620c2d37eeaddf907c0e9021a94c23691acefc42220db04660ec43fb",
"pubkey": "c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e",
"created_at": 1743022412,
"kind": 1,
"tags": [
[
"e",
"7232af889e79b07bc8dab1307acc24766bd869f9a9be3ff86f8239be532ef2f9",
"wss://hbr.coracle.social",
"root",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
],
[
"e",
"f2593480be2f38aaa0435b2e6e2911fa2641a254d2d3774b2761385d2b60abbc",
"wss://nos.lol",
"reply",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
],
[
"p",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322",
"wss://nos.lol"
],
[
"client",
"nosotros",
"31990:c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e:1728437063755"
]
],
"content": "Yes, relayFilters stream approach was something that I came up with the outbox in mind, it's been very useful and easy to split filters of a single subscription, I also designed in a way to work batching multiple unrelated subscriptions together, everything becomes a queue at the end consumed by the start() operators, this approach has been working really well for me and haven't touch much in a while.\n\nrx-nostr is indeed too tightly coupled and when I started my mind was mainly focus on the batcher.\n\nThe way I been designing things is the core the be completely stateless and lazy, you can create a subscription and the core will never initiate any subscription for you, just like rxjs itself wouldn't, it just gives you the building blocks.",
"sig": "6c781afe14348d16e22c8daae23de6d935caade33e94af9ee69f7bd0e1e2bdf29efa48bf4b399bde78f1534dbdaf2be094e8a620739f689524d37e5ce712c39b"
}