Why Nostr? What is Njump?
2024-08-02 00:50:57

dankswoops on Nostr: NOSTR DEVS: Please explain the best logic to implement a 'Caching Relay' and then ...

NOSTR DEVS:
Please explain the best logic to implement a 'Caching Relay' and then serve other relays events.

I'm assuming I fetch the users content from the caching relay first and then retrieve new events from the other relays. Do I set certain timeouts to start interval cycling through all the other relays one time per refresh? Am I scanning all the added relays in async? What method/process gives the best client user experience? I tried reading pages of search engine results and the nips but can't find a solid answer.

Author Public Key
npub1yrkexvt88h6cgd32gdcfm55auuz6rw6c70xj478gcz6lstz5czvs9s77xh