by collaborative · 5y ago · 0 comments
This has saved both my very limited F1 server from sad OOM exceptions and my iOS vm'd client from crashing while processing too much text
I do the same for uploads
There is no memcache in node.js F1 but what I do is I use the GCS container itself as stream memory instead of the usual node.js memory multer (yes, this is possible!)
This only adds a few ms to the read op which is entirely fine
Times as many instances as you have. So 28 hrs = 1 instance running all day + an extra 4 hours of a second instance
It auto scales