Has anyone built an in-memory relay implementation for development/testing uses?
Connecting to live relays while developing new things feels pretty wasteful. Both in adding to the burden on the relay but also because sometimes you need a note with specific qualities (kinds, tags, etc) to test something properly.
Indeed, nostr-rs-relay supports an in-memory mode (SQLite). Just set database.in_memory=true in the config file.
Please Login to reply.
Oh cool! I didn't know that. I'll check it out.
Make sure you use release 0.8.8 or newer, I just fixed some issues with the in-memory DB. Thanks for reminding me to test it :)