What's generally accepted wisdom/tech solution for temp files on GAE using PHP, please?
I need to store and process an image (a few hundred K in size) using PHP that momentarily (e.g. < 1 second) needs to exist as a temp file somewhere before it's sent on elsewhere and the temp file can be deleted. My site will need to autoscale for potentially large numbers of users (using GAE as standard).
My idea was to attempt to store the temp file in memory (using tempnam() etc) and if that failed (e.g. mem full on that instance), immediately try and use some other storage instead on the fly. Question is what? Image has to be available as a file for CURL to access it (I think?) and send elsewhere, so Memcache is not an option (can't access the data as a file to pass into CURL - or can I?), but e.g. Cloud Storage is (via 'gs://[bucket-name]/...'). Thing is, if I've just written the file to storage, is it immediately available for reading? That's also a significant cost incurred...
Any help much appreciated!
Thanks, Alex
GCS provides a default application free bucket that is tied to your app as well. There is no quota for this bucket.
ref: https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/activate#using_a_default_bucket