Alex Gleason on Nostr: Nostr relays, caches, and databases should all use the same storage interface so you ...
Nostr relays, caches, and databases should all use the same storage interface so you can compose and replace them. You should be able to use a remote relay, SQLite, or in-memory cache interchangeably with the exact same interface.
Published at
2024-01-09 18:19:56Event JSON
{
"id": "a79eb7db374e095a3df3c848b5969ab84947a7d161715b9286dcc20ff5de8e7b",
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
"created_at": 1704824396,
"kind": 1,
"tags": [
[
"proxy",
"https://gleasonator.com/objects/4438539d-e479-4fbf-b929-b569d0b6c73b",
"activitypub"
]
],
"content": "Nostr relays, caches, and databases should all use the same storage interface so you can compose and replace them. You should be able to use a remote relay, SQLite, or in-memory cache interchangeably with the exact same interface.",
"sig": "677d2fa25785104a993d0b1f2fb24eea772eb3dc44ba43a59e63bd127699fcda0816460a4639790bb7abfa18b53ea9f58a4ceb596f31bf94a2c9ba0d7ad782a4"
}