james r on Nostr: but more options means more work for all relays, and doing database queries every ...
but more options means more work for all relays, and doing database queries every second on behalf of a client that does constant polling for new events would kill a relay, while live subscriptions are simple and easy, the client doesn't have to update the scrolling, it can cache the live updates locally then display them when the user clicks or refreshes
Published at
2024-07-09 11:20:39Event JSON
{
"id": "d1c73e6e9d68ae264c88e704439b6926c734c7975af47738848dea5e5e659cee",
"pubkey": "aa0f05bad5cf46487338cace55fc2b7cb8e69de6fea4317d3334474369169de8",
"created_at": 1720524039,
"kind": 1,
"tags": [
[
"p",
"70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9"
],
[
"p",
"aa0f05bad5cf46487338cace55fc2b7cb8e69de6fea4317d3334474369169de8"
],
[
"p",
"72f9755501e1a4464f7277d86120f67e7f7ec3a84ef6813cc7606bf5e0870ff3"
],
[
"e",
"cf5089c5c9c790bbbbb722c3215fa6d2701b1107567b80c6d97b42057dfea39b",
"wss://theforest.nostr1.com",
"root"
],
[
"e",
"4cfcb5777341a6481e20ad6f3b8c8234fdd0966e87bb42644af7e3b1c9ad135f",
"wss://nostr.thesamecat.io",
"reply"
]
],
"content": "but more options means more work for all relays, and doing database queries every second on behalf of a client that does constant polling for new events would kill a relay, while live subscriptions are simple and easy, the client doesn't have to update the scrolling, it can cache the live updates locally then display them when the user clicks or refreshes ",
"sig": "b1aaed2919eb6f649d5814d18a068a77a0a4113d7f6135f39889b17700e91522ca6c1f54dd2cb25ce8e1a768b09e2a5e75d5949183821bc23da1249f57c2a7d7"
}