Doug Hoyte on Nostr: There is a "websocket" thread that is async since it handles multiplexing all the ...
There is a "websocket" thread that is async since it handles multiplexing all the different websocket connections. However, it delegates most CPU or I/O bound operations to various thread pools. There are more details in the Architecture section of the README:
https://github.com/hoytech/strfry#architecturePublished at
2023-01-12 16:21:13Event JSON
{
"id": "22823e6459c633cb6508b4ee2f74a635dd8eed0b71145c53a4c8c14c55acc7b8",
"pubkey": "218238431393959d6c8617a3bd899303a96609b44a644e973891038a7de8622d",
"created_at": 1673536873,
"kind": 1,
"tags": [
[
"p",
"9fec72d579baaa772af9e71e638b529215721ace6e0f8320725ecbf9f77f85b1"
],
[
"e",
"2ffb791f05e94d061c3cc6af487c49adf1618a9a44e00d440af1a27bbcf905dd",
"wss://nostr-pub.semisol.dev",
"root"
],
[
"e",
"7497c5f9b0e9e9d9f3a012ccc065559f9d606e08d7f1b2fcdfee5895993beb4b",
"wss://relay.nostr.info",
"reply"
]
],
"content": "There is a \"websocket\" thread that is async since it handles multiplexing all the different websocket connections. However, it delegates most CPU or I/O bound operations to various thread pools. There are more details in the Architecture section of the README: https://github.com/hoytech/strfry#architecture",
"sig": "cab2a8192cbd031fae793195db347595895e37e575e76d3e5fa23ec669a0738f9c7cc59235314c3f43e8da944fe7c54f1cf0d2ce80bf130efb6fb84f9ea64130"
}