Oddbean new post about | logout
 I’ve got less than you! https://image.nostr.build/b87b5ffac873ac366d035d2b4f9ed65bc124308b3d39c71412325d880430a6a7.jpg  
 What are you running? 
 https://github.com/bndw/nostr-relay-proxy 
 That's a surprising little amount of code. Does it multiplex requests and subscriptions to all read_relays and deduplicates events before sending them to the client?

How difficult would it be to add the gossip model to a proxy relay? E.g. keeping track of which relays follows are using, and fetch notes from those relays. 
 totally, fiatjaf’s relay sdk does all the heavy lifting. 

for every read request it concurrently issues the query to both the local db and upstream read relays. it deduplicates events received from both of those queries and the threads basically race to write events to the websocket.

Gossip model and upstream relay AUTH are the two items on my todo list, and I haven’t given either much thought yet 😅 
 and yeah, it multiplexes the upstream requests in that it persists and reuses a connection to each read relay.