ev on Nostr: > set up a server that acts as a proxy to generate and cache thumbnails. Good point. ...
> set up a server that acts as a proxy to generate and cache thumbnails.
Good point. Since Nostr doesn't have a distributed blob store (yet?), everyone is doing lots of unnecessary network calls to outside hosts to gather photos and avatars.
You could either create a server for the app where the crops are stored, then you could use that to measure your app engagement, or you could crop and cache a replacement photo locally on the device so that you aren't doing a network call every time a profile photo is loaded.
The second option would be more privacy preserving, but there is a balance here when you're running a startup since user metrics are important.
Published at
2023-04-15 14:05:23Event JSON
{
"id": "7916255aba86316b96d1e59bb444ce230e10b7d4020c7f86da124465306673a5",
"pubkey": "8b278ad86bf6a418dba942ff04fa8ed372303ab1b5e4286b785f7a5cdc07b277",
"created_at": 1681567523,
"kind": 1,
"tags": [
[
"p",
"ff27d01cb1e56fb58580306c7ba76bb037bf211c5b573c56e4e70ca858755af0"
],
[
"p",
"d0a1ffb8761b974cec4a3be8cbcb2e96a7090dcf465ffeac839aa4ca20c9a59e"
],
[
"e",
"5f6783892d0d5f09c73d5412c074514a7930f33d1ea270dd836eb7eaf62b8262",
"wss://relay.damus.io/",
"root"
]
],
"content": "\u003e set up a server that acts as a proxy to generate and cache thumbnails.\n\nGood point. Since Nostr doesn't have a distributed blob store (yet?), everyone is doing lots of unnecessary network calls to outside hosts to gather photos and avatars. \n\nYou could either create a server for the app where the crops are stored, then you could use that to measure your app engagement, or you could crop and cache a replacement photo locally on the device so that you aren't doing a network call every time a profile photo is loaded. \n\nThe second option would be more privacy preserving, but there is a balance here when you're running a startup since user metrics are important.",
"sig": "0a009c4f7a05cb071ed616fdd99ea9342a90fc88386ba8deb57bee5c114ad4b94b878bf63fb5024e6718d6e32a437e2dbcc81021a15c2667054ebd08864ee9de"
}