The Real Grunfink on Nostr: Yes, threads are either waiting to process an incoming connection or to send posts to ...
Yes, threads are either waiting to process an incoming connection or to send posts to other instances. Given that they are I/O bound (not CPU bound), you can have a big number of them without adding too much load to the server. They also use very little memory.
The default is to spawn as many threads as available cores, but 4 is the minimum.
Published at
2025-04-25 17:00:27Event JSON
{
"id": "9c18343577f846d7810f8b087e419f5a5fdc60ebcf7b67a5f1bb2a3c839b6241",
"pubkey": "0fbceb8e38272c4e7d199540626739d2246c9b9b957f0b97b5799e0aa28bf2a0",
"created_at": 1745600427,
"kind": 1,
"tags": [
[
"p",
"084a316127f5026cf046882855ce7f9e4fc2924db1997f9b33e8f62a9e7ffec9",
"wss://relay.mostr.pub"
],
[
"e",
"63ce8548817513bb4eac69e8116120ca66ea46dca600db90a3d6b6ee5ece04ab",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://comam.es/snac/grunfink/p/1745600427.167185",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "Yes, threads are either waiting to process an incoming connection or to send posts to other instances. Given that they are I/O bound (not CPU bound), you can have a big number of them without adding too much load to the server. They also use very little memory.\n\nThe default is to spawn as many threads as available cores, but 4 is the minimum.\n\n",
"sig": "b3b8fafb92028f8723cf46cbf9043cbe503fd83901ab590243ce44a539db9dcb6124d216dc22d3562e612e3ad59f7a6d57886226941f7d15509ca63e88e0a45b"
}