Planning the launch of a comic site that serves comics (images). I have little experience in servicing / caching images.
so these are my 2 methods that I consider:
class Comic(db.Model) image_link = db.LinkProperty() timestamp = db.DateTimeProperty(auto_now=True)
Advantages: Images are obtained from the disk space itself (and disk space is cheap, do I accept it?) I can easily configure app.yaml with an expiration date for caching content in the user's browser I can configure memcache to receive objects faster (for high traffic)
I used this lesson, it worked pretty neatly. http://code.google.com/appengine/articles/images.html
: , BlobProperty "" ? ,
2.
:
memcaching ? (100-200 ). , memcache 4 ? 1 memcached ...
, memkache appengine ? → : .
. 1 2? 1 , ?
[] ?
: , , - .ly, ( / , )
(). , appengine , , , 1000, , , . , , # 1.
№ 2 , , . , (CDN). Amazon S3 edgecast.com - CDN, . , appengine, IP-, , , URL- cdn . CDN . , , , , 100% -, , , .
appengine cdn appengine URL- , cdn.
URL. :
http://jets3t.s3.amazonaws.com/toolkit/code-samples.html#signed-urls
http://www.edgecast.com/edgecast_difference.htm - " "
, , :
Flash, - , , . .
. , -, , - . , .
, , , , , AdBlock.
, . , , , appcfg.py. AppEngine , . . , memcache, , , .
, , , , . , , , . , HTTP , , , , , .
, , , , . , , , , . , , , , . . , .
№1 : .
№2 . "" hotlinked - URL-, , , , , .
The third option and option # 2 is to use the new Blob API . Instead of saving the image itself to the data store, you can save the blob key, and the image processor will simply instruct the blobstore infrastructure which image will be served.
Source: https://habr.com/ru/post/1729895/More articles:Get DIV index value - jqueryFatal error: maximum run time exceeded 400 seconds - phpEclipse / GTK + spends screen real estate - eclipseThe increment field in the Select statement - sql-serverAndroid: deleting / destroying objects when rotating the screen - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1729896/writing-web-service-to-convert-documents-to-pdf&usg=ALkJrhjlSy3SSlxU1wmSobH6qoR23Ape1ACustomizing my search function - c #Как скрыть URL-адрес, который отображается внизу документов при печати чего-либо с веб-сайта? - javascriptHow to find out how many times a particular method is called in java - javaHow to get a message request from its serial number? - c ++All Articles