ben on Nostr: > Concurrent Event and Request Handling: EVENTs and REQs can now be processed ...
> Concurrent Event and Request Handling: EVENTs and REQs can now be processed concurrently, greatly improving the relay's efficiency and responsiveness.
can you talk about how this works? is there a map or something you’re locking? in my experience most api and data access is concurrent by nature unless you’re e.g. sharing some global state.
Published at
2024-08-19 20:57:05Event JSON
{
"id": "1468822daacff635c573e5d931959bf575f71ecd2d57ad4017479413f3ac3e61",
"pubkey": "7bdef7bdebb8721f77927d0e77c66059360fa62371fdf15f3add93923a613229",
"created_at": 1724101025,
"kind": 1,
"tags": [
[
"e",
"cf592267a3e95c2b94dd5a395c96a421cc9255f19355c429da0f7e00fa664798",
"",
"root"
],
[
"p",
"16f1a0100d4cfffbcc4230e8e0e4290cc5849c1adc64d6653fda07c031b1074b"
]
],
"content": "\u003e Concurrent Event and Request Handling: EVENTs and REQs can now be processed concurrently, greatly improving the relay's efficiency and responsiveness.\n\ncan you talk about how this works? is there a map or something you’re locking? in my experience most api and data access is concurrent by nature unless you’re e.g. sharing some global state. ",
"sig": "0ce8baf87d1ff1517f37226a2ccc293e08e9905136033dfa8990210586ec607536d2855a64cd564975cadffafc2b582b95164fce790b306dc90245a315f310aa"
}