Nathan Knowler on Nostr: New engineering problem: currently on Deno Deploy I’m using BroadcastChannels to ...
New engineering problem: currently on Deno Deploy I’m using BroadcastChannels to create a sort of P2P object cache between isolates so I can avoid too many KV reads. That’s been working pretty well for the last 4 months or so, but it seems with my most recent blog post I’ve discovered a new limit — the max size of BroadcastChannel messages. Seems like I could just batch the messages, but this is pretty exhausting. I’m honestly considering ejecting all the content from the KV store and putting it in the repo at least until I find a better solution.
Published at
2024-05-31 17:37:29Event JSON
{
"id": "7048cf43263f6fff7c36c486d9e6c0daced6827b10401d41bac7419daaf4ab9f",
"pubkey": "f29a4060dfdefb8809dd64eda7a8e1d89e7bd98040a1b82b9a1925378c158146",
"created_at": 1717177049,
"kind": 1,
"tags": [
[
"proxy",
"https://sunny.garden/@knowler/112536915129767316",
"web"
],
[
"proxy",
"https://sunny.garden/users/knowler/statuses/112536915129767316",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://sunny.garden/users/knowler/statuses/112536915129767316",
"pink.momostr"
]
],
"content": "New engineering problem: currently on Deno Deploy I’m using BroadcastChannels to create a sort of P2P object cache between isolates so I can avoid too many KV reads. That’s been working pretty well for the last 4 months or so, but it seems with my most recent blog post I’ve discovered a new limit — the max size of BroadcastChannel messages. Seems like I could just batch the messages, but this is pretty exhausting. I’m honestly considering ejecting all the content from the KV store and putting it in the repo at least until I find a better solution.",
"sig": "9de54c50ab8d07dba97634ade0cf238d62bb534ab4007abd7791501df7c0c43fa93803d48205755c68be2105c681ac4dfaf0d950b304216bb4fe0904c3f6ccd4"
}