jb55 on Nostr: Not sure if its exactly related, but strfry has a work counter mechanism for this. It ...
Not sure if its exactly related, but strfry has a work counter mechanism for this. It will pause and resume a query if it’s taking too long to serve all at once. if it didn’t have this some requests would stall. This ensures all queries are delivered in a timely manner.
It’s kind of crazy how far the optimizations go. Everything you need to know about nostr relay optimization exists in there.
Published at
2024-06-28 02:52:03Event JSON
{
"id": "f6c32c43f55f37e29fefea1cab18df1bb7598f7817edd38447785ab2ec190d73",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1719535923,
"kind": 1,
"tags": [
[
"e",
"e444b335d961bffbaf851b3a119f06a5ab0221c5c91d17082d6d78f2e8a87f0f",
"",
"root"
],
[
"p",
"0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd"
]
],
"content": "Not sure if its exactly related, but strfry has a work counter mechanism for this. It will pause and resume a query if it’s taking too long to serve all at once. if it didn’t have this some requests would stall. This ensures all queries are delivered in a timely manner.\n\nIt’s kind of crazy how far the optimizations go. Everything you need to know about nostr relay optimization exists in there.",
"sig": "f286c170824b5fc9928e3e40ef06b28b82e9ed91ffdc086e494e3c2e85f0cb667c7cf9ae1246bbc7001bc4c92179805974a00725403c0850992f13d1a67497ec"
}