objective c - Which is a better way: retrieve images from AWS S3 or download it and store locally in a temp folder to be displayed? -


problem: retrieve image s3 , load uibutton.

i'm doing research on issue , can't seem make mind. better way in terms of performance , security issue?

also, need caching or store these images in core data?

thanks!

it depends on how use them. if app going retrieve images similiar instagram, or twitter, it's download them user requested images via app.

if once images retrieved, application going use images again , again multiple times, it's idea store images after downloaded.

for example, let's think application "social networking" concept, , app, let's say, has chat interface functional after users add each other. users add each other, download images of users , store them on device, can use profile images of users retrieving locally stored images rather retrieving them server, thus, each time chat each other, dont use bandwidth nothing. , should use push notification or has similiar functionality scenario, when user changes profile pictures, of his/her friends should notified (i mean app going notified server) retrieve , update local profile image newly added ones.

as said, depenends on scenarios of application/server relationship. if images storing on aws s3 going used once, storing them useless. , if user going use of images (like app social networking app, friendship app , friends going see each other's photo or uploaded images frequently), storing them idea, of users has subscribed each other.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -