In the google App Engine docs for Node.js it only recommends redis, for other languages it has native memcache. Is there a better caching system than making exterior calls to redis?
In the google App Engine docs for Node.js it only recommends redis, for other languages it has native memcache. Is there a better caching system than making exterior calls to redis?
2
Answers
So far native memcache is only available to standard environment apps. But it’s true, native memcache future availability on flex env was announced at least for python and java. From Memcache:
Please note that the Redis service comes in 2 flavours:
Both of these services can be provided right from inside google datacenters, in which case they don’t exactly make outside calls. From Setting up (on either service):
This means they shouldn’t differ too much in performance compared to the native memcache, which is also offered on some (other) servers in the google datacenters. Well, at least for GAE apps hosted in
us-central1
.Note: this is all based on docs, I didn’t yet use the flex environment.
Like @Dan says Memcache is not available (yet) for Node.js
If you need to cache Datastore entities, there is a library (nsql-cache-datastore) that has a memory cache and can connect to a Redis db. Its “memory” cache store is only useful if you have one App engine instance.