brb.io exposes their relay content in a restful interface which is really nice. #[2] are the endpoints part of the relay or a separate layer over the db?

Reply to this note

Please Login to reply.

Discussion

I would think they’d be a separate interface over the same db. It would open things up for more interesting explorer type use cases I think.

Would probably take a huge amount of load off of relays as well.

Agree with that, was curious if the brb team had any repos. But yeah aside from that specific instance I’m with you on using REST interfaces…. also think things like Rabbit or Kafka are good solutions for patterns like this.

Personal opinion is that nostr the protocol is the event model/schema, websockets are an interface. None of the filtering patterns defined in the nips are unique to that layer.