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 one region are broadcasted to the clients connected in a separate region?
Login to reply
Replies (1)
Using the python 3.10 runtime for the lambdas. Not using the serverless framework yet, these were all manually configured functions, mostly copy paste from
and don't adhere to a specific design style. Was really just shooting from the hip here to test a few things.
I'm currently using rds postgresql and relying on that to update the read replicas in the appropriate regions. From the synthetics tests, this seems to update pretty quickly on db write.
But I'm definitely with you on the relational database bit. I have been meaning to try to refactor this to use a nosql db as we are really just utilizing 1 table but it was what I'm familiar with so I just ran with it lol.
GitHub
GitHub - UTXOnly/nostpy-relay: A nostr relay backed by a postgresql database, run with docker-compose
A nostr relay backed by a postgresql database, run with docker-compose - UTXOnly/nostpy-relay