jb55 on Nostr: i wouldn’t consider a request-response system like http to be push system just ...
i wouldn’t consider a request-response system like http to be push system just because i temporarily open a connection, make a request, and a response is *pushed* to me.
Push to me is about the initiator of the event.
What if I created a request and got a response? This is not push because i had to “poll” to get the other peer to generate a reaponse.
What if someone generates an event on the network and i am subscribed? Then yes, a user pushed a message to the relay and the relay pushed the message to my device.
The connection is just the thing that enables messages to go back and forth. I don’t think it makes sense to define push/poll based on how the channel was created.
Published at
2025-04-14 20:58:01Event JSON
{
"id": "b511c712550e577da7df02e16f87787a6e0705d3ef3f45f81a993ab5f03a7f3b",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1744664281,
"kind": 1,
"tags": [
[
"e",
"fbb45bdcd77d31eee54e441acc9451586c75a462be466652300a8ed0a68c343a",
"wss://ditto.pub/relay",
"root"
],
[
"e",
"32b0e36792a58326e43bd493e2a2c66ec805348e5b82775d9255b00415b6b94f",
"",
"reply"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
]
],
"content": "i wouldn’t consider a request-response system like http to be push system just because i temporarily open a connection, make a request, and a response is *pushed* to me.\n\nPush to me is about the initiator of the event.\n\nWhat if I created a request and got a response? This is not push because i had to “poll” to get the other peer to generate a reaponse.\n\nWhat if someone generates an event on the network and i am subscribed? Then yes, a user pushed a message to the relay and the relay pushed the message to my device.\n\nThe connection is just the thing that enables messages to go back and forth. I don’t think it makes sense to define push/poll based on how the channel was created.",
"sig": "7dc3f3b930b8277d60b16c5df94cb391e0b6a78d254c7d356085dc81bfa56a94acec8c964c05936dfc01e7e29f878860d63222a9b7728e76de4ed23e221a8d2d"
}