By Alex on Friday, 25 April 2014
Posted in General Issues
Likes 0
Views 1K
Votes 0
hey guys,
you have a serious performance issue in the way you're dealing with images when sharing a link. I'm pretty sure this wasn't planned by you but just missed - but anyways it can slow every site to the ground ^^

to replicate:
once you share a link you are presented by an image selection where you choose a matching thumbnail. now digging deeper it turns out you load the original image from the target site and use this as the thumbnail. in other words: if a user shares a link, selects a thumbnail and the original image is 2mb (just to pick a number) then you always load the 2mb pic for this stream...
now for sure you don't have only 1 shared link but tons of them, multiplicate the numbers of the image size with 10/ 50 / 100 / 1000 or whatever and you can imagine how the site loads... or better said: doesn't load
Hi Alex,

Thanks for pointing this out. I will discuss with Mark about this one internally and hopefully we can come out a solution very soon to address this issue.
Thanks again and have a good day
Sam
·
Friday, 25 April 2014 14:54
·
0 Likes
·
0 Votes
·
0 Comments
·
hey sam,
good to hear that you 2 put your heads together, I'm sure that should bring us a quick fix for this crucial issue.

fyi: facebook and google is overcoming this problem by generating their own (obviously much smaller) version of the selected image and then serving this instead of relying on the external original source - just in case you need some ideas
·
Saturday, 26 April 2014 01:06
·
0 Likes
·
0 Votes
·
0 Comments
·
hey sam,
any news on this? just checked the new 1.2.9 and seems like there are no fixes in that area
·
Thursday, 01 May 2014 00:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

I am sorry for the delay of this reply.

We are still in the middle of the discussion about this issue. I will get back to you once we have a solution on this one
Thanks for your patience and your understanding

Have a nice day
Sam
·
Monday, 05 May 2014 13:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Nice observation. Alex is right that a small image ought to be cached for external images in the stream. Keep in mind who's bandwidth are we really cutting into? Our own, or the site that the image is hosted onto. If it's the external site, we would be doing them a favor by caching a thumbnail which I'm in a favor of anyways.

If we are worried about a user who happens to have a copyrighted image cached, we could allow the admin to remove the preview by editing the post.
·
Monday, 05 May 2014 15:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Josh,

Thanks for the heads up on this. Yes, after having a discussion with Mark, we decided to cache the thumbnail in EasySocial when someone share a links and selected a thumbnail

We will be adding this in EasySocial 1.3

Hope this help and have a nice day
Sam
·
Monday, 05 May 2014 17:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Sam, it goes appreciated.
·
Tuesday, 06 May 2014 02:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Josh,

You are welcome
Sam
·
Tuesday, 06 May 2014 10:53
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post