Another relay written in C++: https://github.com/mattn/cagliostr The last time someone showed up with a C++ relay it went like this: https://cdn.satellite.earth/52384037195284ffbc513342b32c52e11e655f95d54037511b0a8aaf117d75f5.png @sondreb
cagliostr uses sqlite3 and litestream to ship WAL backups directly to S3.
Can it use litestream to replicate the database to other running instances of cagliostr? @mattn
Now I'm thinking about a relay that uses some slow but flexible and customizeable process to filter incoming events like https://github.com/fiatjaf/jingle, but then use some very fast scheme to serve requests once they are approved. I guess strfry could have a plugin for denying REQs and it would be basically this. @Doug Hoyte what do you think? It could do like https://github.com/fiatjaf/khatru does it: once you deny a request a CLOSED message is returned and if it includes the "auth-required:" error prefix strfry issues an AUTH message first to give the client the option to authorize before it replies the request.
THE cagliostr requires few resource. Currently cagliostr have about 100 users in Japan. https://image.nostr.build/1583873058596a268dd61ec73762f4c98beb3c50835ddf16a11f5ea17f3f79c1.png
It's been a while since I've done this, but last time I created a "helo world" program in c and c++ When the C compiled, and the debug stripped it was less than 10K, but the C++ one was 200K