>From: cd9ea7c...<-8eb09... at 03/26/23 23:15:02 on wss://relay.damus.io
>---------------
>Can you explain why each image has to be downloaded by 10-30 relays per user?
>
((without getting too complicated, it doesn't mean that, necessarily.)) not sure how many relays most people use.
>As far as I understand, the image url is referenced within an event. That does not necessarly mean a relay would have to fetch it right?
>
(( referenced within an event, yes. and correct, the relay doesn't necessarily have to fetch the jpg. )) but the moment someone on global or that relay OR that persons followers list, fetches the event, that jpg is suddenly being pulled by from the media storage server whereever that is, and pulled by the users accessing it via that event on that relay, if this makes sense.
>Since the user first fetches the events from relays, which then make a separate request from the client to the image server.
>
>If for any reason all relays would need to fetch images (let“s say to verfiy the image content with a hashsum or whatever) this also may be solved in another way.
>
((this is interesting and sounds convoluted, but i'm curious what your proposing here, and how it would be beneficial..))
>Also another thought that came to my mind: To serve images that would cause high traffic, lets assume we know the user posting it has a lot of follwers: Image is uploaded to imager server. The relay recognizes this image as a very important image (VII) and publishes a specific event which will list a clients for that image that have downloaded this image within the last 20 minutes. Using this event, clients could request the image from other clients instead of getting it from the image server. It is like a client-only peer-to-peer image CDN. I am not sure though how this could be implemented so that clients could be found. Maybe with ephemeral events and web workers.
(( this is actually very interesting. )) I like this alot.
what I've yet to see is some sort of procedural regularity with the relays that i'm using (about 40 of them), and wherein I can predict a pattern therein that the above would actually be applicable in a relevant way,}{ without turning into the dreaded "this torrent started but has no seeds, scenario."
furthermore, on your last point: that would mean that other clients also have knowledge of an image uploaded, and where it is, making clients more a search engine back end, (but then how would they serve and validate metadata requests for an image or media resource, or mp4 for example?) the discovery portion of this is a bit vexing...
I wonder what thor@tigerville.no thinks of all this.
all of you are welcome to come discuss this on my irc server, if you'd like. there are already a few tech folks that idle there if you need some extra brains to pick.
2x2chat.com #2x2