java - Static images in webpage from Google App Engine -
i'm porting old java project gae. has servlets, generate html pages static images in them. in original project these images stored on filesystem next servlets.
i'm trying use gcs in first place, i've uploaded files , gave permissions on public read. in case can reach files public link, can embed these links html output. have feeling isn't right solution. load time seems quite slow, images don't "travel internally", , have provide permission every single image.
so question is, how "internal" url file located on gcs in gae application?
i've found java examples, in case don't think need image object in source, need url pass on html source.
as far know simple deploy images source resources, there quite many of them.
if there other soultions, datastore, i'm open too, thought gcs easiest.
google cloud storage fast option loading images other. browser reads link , asks server (in case gcs) deliver image. there no "internal" url can work faster - speed reflects bandwidth/distance between gcs , browser asked image.
you can speed using cdn, image stored on local servers throughout world. makes sense if serve content large number of users, , critical part of how fast page loads.
another way speed page load time use image sprites instead of images. way cut number of requests browser server (i.e. gcs). if images not change frequently, , pages need same "collection" of images (i.e. not shown dynamically), solution.
Comments
Post a Comment