dave's avatar
dave
_@deschooling.us
npub1cldx...rps5
Walk away from Omelas...
dave's avatar
dcs 2 years ago
#python nostr-relay 1.11.5 released: * Support prefix id and author searches * Several micro-optimizations in the LMDB backend * Configurable max_limit to limit the number of events returned per REQ. (default: 6000) * Made Homeserver more reliable * Simplified storage of verification status
dave's avatar
dcs 2 years ago
USGS has a nice web tool for making custom topographical maps of the US. (I wish my local library could print out the 24x29" pages)
dave's avatar
dcs 2 years ago
I switched wss://bhagos.org/ to LMDB It's a small VPS, located in Finland. Anyone who is a friend-of-a-friend of me (and several others) can post there. About 9,000 pubkeys are whitelisted...
dave's avatar
dcs 2 years ago
"Mankind will not be free until the last general is strangled with the entrails of the last systems-analyst. As my sainted grandmother used to say." – Edward Abbey
dave's avatar
dcs 2 years ago
Latest version of #python nostr-relay switches to using "internal events" for keeping track of NIP-05 verification, which simplifies the database a little. Also, I added a "recipe" for configuring a private relay that can accept replies to you. It'll also forward your events to other relays. More details on the wiki page: I might add other recipes in the future. Let me know if you've got ideas!
dave's avatar
dcs 2 years ago
Does anybody remember FIDOnet? My first email address was provided by a local bulletin board that happened to be connected to FIDOnet and provided a gateway to the outside SMTP world. I would sometimes chat with the BBS sysop when we were both online. When I told him I was using a hand-me-down 8088, he offered to give me a spare 386sx he had – a huge upgrade for me. He drove to my house to deliver the computer, since I was too young to drive, and my mother was very skeptical about me receiving gifts from some pre-internet stranger. But there were no strings attached. It was just an act of generosity from a benevolent sysop to a curious kid. These days, I think that spirit of generosity is mostly lost. Many people try to monetize every interaction. They build brands around themselves, in order to monetize some fictional identity. But I haven't forgotten FIDOnet and its beneficent sysops. I hope to be as generous as the people who have benefited me.
dave's avatar
dcs 2 years ago
nostr-relay 1.10.5 adds a MultiIndex to the LMDB backend, for efficiently querying complex filters. It also adds the concept of a "service event" – an event type that the relay can use for internal storage or remote control. The relay uses this for setting authentication roles. The next release will use it for storing NIP-05 verification status.
dave's avatar
dcs 2 years ago
nostr-relay 1.10 is out, with an improved LMDB backend. Writing the backend has been fun. I have some experience writing an LMDB content-addressable storage system, and a series of web apps that used LMDB, so I'm familiar with its limitations and advantages. The main disadvantage is that you have to write your own querying engine, and there are no general tools for inspecting LMDB databases. But since a nostr relay is designed for querying, this is less of a problem. To peek and poke your event data, just use nostr queries! Switching to LMDB and pypy can result in some huge performance improvements (I'll publish benchmarks at some point). Time will tell if this setup is scalable enough for a large nostr relay. Read more about the implementation details here: And let me know how it's working for you.
dave's avatar
dcs 2 years ago
#[0] Thanks! My first sats, ever! I'll be sure not to spend them all in one place. Hey, I saw on NIP-56 that you were wanting an inbox/outbox style of relay. I wondered how that would look for the python relay, so I whipped up this example code and configuration: Since validators are just configurable functions, it's very easy for relay operators to customize. The output_validator code is not released yet, as I'm not sure if it's a worthwhile feature. What do you think?
dave's avatar
dcs 2 years ago
benchmarking #python nostr-relay on my low-end VPS: ~470 event adds/second ~19,000 event requests/second This seems sufficient. If a relay were receiving 40 million events per day, you'd have all sorts of other problems to deal with.
dave's avatar
dcs 2 years ago
It’s weird to see so much focus on monetization in the #nostr space. Tim Berners-Lee or Paul Vixie weren’t thinking about profiting off of HTTP or DNS. They wanted to build useful protocols and tools. If nostr thrives, it’ll be due to a spirit of generosity and creativity, opposed to the greed-infested tech world of Ponzi schemes.