You are viewing a single comment's thread from:

RE: 4th update of 2024: improving imagehoster performance

in HiveDevs29 days ago

I wonder if it would be more efficient if front-ends got the image url from the json_metadata instead of calling imagehoster/username/avatar. In this way, imagehoster could be just an image hoster and won't need to deal with hived.

Sort:  

Yes, we've been thinking about this, not so much to avoid having the imagehoster talk to hived, but just to allow for more geographically dispersed servers (only one imagehoster, but many API nodes) that could potentially have the data "closer" to browsers. But we suspect cloudflare is effectively already doing that for us and the amount of data is so small its going to be caching pretty much all of the avatars that are in use. We're going to do a little more testing in different regions, however.