fiatjaf on Nostr: "If you're connected to 10 relays and query them sequentially, adding alreadyHave to ...
"If you're connected to 10 relays and query them sequentially, adding alreadyHave to each request you might save up to 90% in bandwidth by not getting the same events 10 times."
From this phrase it sounds like you're just making the same giant query to a static set of relays, which is obviously not the right way, since it is a centralizing approach and not censorship resistant.
Try using the outbox model and relay hints more.
Published at
2024-01-15 16:45:21Event JSON
{
"id": "a73b66f43007ff5d7744cf5fb932ed89baf3a44eff7f029b00784a5a407f5d80",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1705337121,
"kind": 1,
"tags": [
[
"e",
"60d9ebce5bb5ef75c51a5b81af67e6efadab2bfbbbb3606651b59494306f4ea9",
"wss://nostr.wine",
"root"
],
[
"p",
"4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0"
]
],
"content": "\"If you're connected to 10 relays and query them sequentially, adding alreadyHave to each request you might save up to 90% in bandwidth by not getting the same events 10 times.\"\n\nFrom this phrase it sounds like you're just making the same giant query to a static set of relays, which is obviously not the right way, since it is a centralizing approach and not censorship resistant.\n\nTry using the outbox model and relay hints more.",
"sig": "2775cade837fbf71d97f0376a71b3915b1f9a2ab2513f0387d1c86706509e5067aeaf1796930b72599fa27fd61601b1b6308d2cec4cb595252b8cf92e7e97acf"
}