skip to Main Content

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


  1. 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:

    The Memcache service is currently not available for the App Engine
    flexible environment. An alpha version of the memcache service will be
    available shortly. If you would like to be notified when the service
    is available, fill out this early access form.

    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):

    1. … Be sure to specify GCE/us-central1 as the Cloud for the lowest latency

    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.

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search