jleger2023 on Nostr: It's so fast because it uses a caching server that gathers events from the top 100 ...
It's so fast because it uses a caching server that gathers events from the top 100 public and paid relays. So rather than having to read from a dozen or more relays it only reads from one -- the caching server. The server also aggregates and indexes the data in a way that relays don't, making it much faster to gather metrics about notes (# of likes/replies) and also allows for filtering that other clients don't. Your configured relays for writing are still posted to for all write events (notes, reactions, profile updates etc).
I'll be expanding the number of relays it reads from soon and it's on the roadmap to also allow using NostrGram without the caching server for folks who want to use it for custom/private relays. Lots of stuff on the roadmap atm!
Published at
2023-02-18 06:14:44Event JSON
{
"id": "4e15887224ef8dcbfcf9ae8706fa6ab3f34f09cbf4ce0adf23e1065dd973a5d4",
"pubkey": "597b42de56a9e0c19ee2d0cde5797dd58d48ce8dd25c732b4c873af11161f9fd",
"created_at": 1676700884,
"kind": 1,
"tags": [
[
"e",
"50bf3980a45d7b748da67e16639e7c3f0958a6dbfbb32bb1822804f23ff5ee2d",
"wss://nostr-verified.wellorder.net",
"root"
],
[
"p",
"ee32690bd984faff7b7496e3239da93d36d541efddaa7e5035451c4236be52c4"
],
[
"e",
"c69af1c1157ec84f1aedc8e659dd9cefc9a22d75a13644bb86e23a3c89d99ef8",
"wss://nostr-verified.wellorder.net",
"reply"
]
],
"content": "It's so fast because it uses a caching server that gathers events from the top 100 public and paid relays. So rather than having to read from a dozen or more relays it only reads from one -- the caching server. The server also aggregates and indexes the data in a way that relays don't, making it much faster to gather metrics about notes (# of likes/replies) and also allows for filtering that other clients don't. Your configured relays for writing are still posted to for all write events (notes, reactions, profile updates etc).\n\nI'll be expanding the number of relays it reads from soon and it's on the roadmap to also allow using NostrGram without the caching server for folks who want to use it for custom/private relays. Lots of stuff on the roadmap atm!",
"sig": "2e93fe949cade2f33b9a1fc91b65efacd226a4afa701a9e71a57da67cf70c7749a78387bf1738be3a90002d94b81735316e1ea5325bd365acc69bd0117745da3"
}