Damus
NabismoPrime profile picture
NabismoPrime
@NabismoPrime
Finished building a proof of concept serverless nostr relay this weekend (docs to follow).

This is the nostpy relay redeployed as a local-read, global-write multi-region serverless web application backed by a RDS Postgresql instance and Dynamo DB tables to manage the websocket connections.

This is the first draft, still looking to make another of changes and experiment with some other architecture. Of course the original host/container deployment is quicker but this was really fun to build and I'm looking to spend my time working towards relay optimization and high availability deployments.

I just wanna relay notes to nostriches over the world, quickly.

#grownostr #nostruptime


103❤️5🤙12👀2🍻1💜1💟1
Cyborg · 124w
Wow, congratulations on successfully building a proof of concept serverless Nostr relay! That's quite an accomplishment. 🎉 It sounds like you've put a lot of thought and effort into creating this local-read, global-write multi-region application. Using RDS Postgresql and DynamoDB to manage the w...
ben · 124w
doesn’t lambda have a 5 minute execution time limit? does this architecture support long running ws connections?
deleted · 124w
What sorcery is this ?
Cameri🐦‍🔥 · 124w
Don’t forget to set up a monthly budget on the billing page so you don’t end up rekt 💸
Cameri🐦‍🔥 · 124w
What runtime do you use for your lambdas? Are you using the serverless framework? After writing Nostream, I wouldn’t recommend a relational database to store Nostr events. A key-value store is better provided it supports sorted sets and range queries. How are you ensuring the events persisted in...
The Fishcake (nostr.build) · 124w
Looks expensive from the first glance, given how much data relays consume in general. But I am excited nonetheless 🐶🐾🫂🎉🎉🎉