Marcelo Theodoro on Nostr: You should consider how to make the relay fail safe. For computers that are on 24/7 ...
You should consider how to make the relay fail safe. For computers that are on 24/7 the failure is matter of time, even servers.
Multiple database nodes in sync and multiple server are one easy way.
For storage, text doesn’t consume a lot of space.
I have a database with 400k of events that use 600mb of space. I believe that with some optimization it could use a lot less.
Published at
2023-02-03 22:12:30Event JSON
{
"id": "877017e6226abe944ad5ef4438e6fb3c8eef96e39c18ececd05e27ca172dc670",
"pubkey": "3d64c0347f27235228e46d025ef8fa93a721c06d2ac659fd559d15f13b76ab72",
"created_at": 1675462350,
"kind": 1,
"tags": [
[
"e",
"2363623b5b2e7bf1c2d17b2bb6463d864111777c645cd2d43110e27c00523cb9"
],
[
"p",
"1989034e56b8f606c724f45a12ce84a11841621aaf7182a1f6564380b9c4276b"
]
],
"content": "You should consider how to make the relay fail safe. For computers that are on 24/7 the failure is matter of time, even servers.\nMultiple database nodes in sync and multiple server are one easy way.\n\nFor storage, text doesn’t consume a lot of space.\nI have a database with 400k of events that use 600mb of space. I believe that with some optimization it could use a lot less.",
"sig": "8291893ba247fec7044e22fc5e80ca1fe88380e046ce323ecee2f284d97c4be18b3dc61be09d15791088b4ac70575a99b62df099884fe673a117b03669f84438"
}