Softwr

Databases · head to head

Google App Engine vs Memcached

Google App Engine logo

Google App Engine

Databases

Google Cloud platform for deploying web apps without managing servers

From
Free
Free plan
Yes
M

Memcached

Databases

Distributed memory object caching system

From
Free
Free plan
Yes

The short version

  • Memcached is free; Google App Engine starts at $0.05/mo.
  • Only Google App Engine lists standard environment; only Memcached lists in-memory key-value cache.
  • Where Google App Engine falls short: google Cloud Run suits most new container workloads better, so App Engine adds little for greenfield projects.
  • Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.

How do Google App Engine and Memcached differ?

Google App Engine and Memcached differ on pricing model and platforms. Only the attributes on which Google App Engine and Memcached actually diverge.

Attributes where Google App Engine and Memcached differ
AttributeGoogle App EngineMemcached
Pricing modelPer instance hour, with a daily free tier on standardOpen source, no licence fee; managed cloud billed separately
PlatformsWeb, APILinux, macOS, Windows, Self-hosted

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for Google App Engine, founded for Google App Engine.

Which features does each one have?

They share no listed features; 5 appear only for Google App Engine and 4 only for Memcached. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Google App Engine

  • Standard environment
  • Flexible environment
  • Automatic scaling
  • Traffic splitting
  • Managed services

Only in Memcached

  • In-memory key-value cache
  • Multithreaded
  • Client-side sharding
  • Predictable memory use

What is each one used for?

Google App Engine is most often brought in for A small web app or API that fits inside the daily free tier; Memcached for caching expensive database query results to cut load. The jobs each tool is most often brought in to do.

Google App Engine

  • A small web app or API that fits inside the daily free tiernot Memcached
  • An existing App Engine codebase that needs to keep runningnot Memcached
  • A team wanting simple deploys without Kubernetesnot Memcached
  • Background services scaled to zero between requestsnot Memcached

Memcached

  • Caching expensive database query results to cut loadnot Google App Engine
  • Session storage where losing sessions on restart is acceptablenot Google App Engine
  • Fronting an API whose responses are costly and change slowlynot Google App Engine

Where do Google App Engine and Memcached fall short?

Google App Engine's most cited limit: google Cloud Run suits most new container workloads better, so App Engine adds little for greenfield projects. Memcached's: no persistence at all: restart a node and its cache is gone, which every design must assume. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Google App Engine

  • Google Cloud Run suits most new container workloads better, so App Engine adds little for greenfield projects
  • The standard environment runs in language sandboxes with version and library limits that constrain what code can do
  • The flexible environment has no free tier and cannot scale to zero, so idle apps still incur charges
  • Some bundled services, such as the Search API, are legacy features with their own small free allowances
  • Apps are tightly bound to App Engine APIs, which makes moving off it to another cloud harder

Memcached

  • No persistence at all: restart a node and its cache is gone, which every design must assume
  • No replication or failover, so losing a node loses that share of the cache
  • Only simple key-value, with none of the lists, sorted sets or streams Redis offers
  • Values are capped at 1MB by default, which surprises teams caching large documents

How much do Google App Engine and Memcached cost?

Google App Engine has a free plan, with paid plans from $0.05/mo; Memcached is free to use. Plan by plan below, from each vendor's own pricing page.

Google App Engine

Free
  • Standard environment$0.05/hour
    • F1 instances free for 28 hours per day per project
    • B1 instances free for 9 hours per day per project
    • Then $0.05 per instance hour for F1 and B1
  • Flexible environment$0.0526/hour
    • $0.0526 per vCPU hour
    • $0.0071 per GB of memory hour
    • No free tier

Memcached

Free
  • MemcachedFree
    • Full functionality
    • Self-hosted
    • No usage limits

Which should you pick?

Choose Google App Engine if

  • You need standard environment.
  • You want to start without paying.
  • You work on Web, API.
  • You also want flexible environment.

Choose Memcached if

  • You need in-memory key-value cache.
  • You want to start without paying.
  • You work on Linux, macOS, Windows, Self-hosted.
  • You also want multithreaded.

Questions people ask

Is Google App Engine or Memcached better?
It depends on the job. Google App Engine fits a small web app or API that fits inside the daily free tier; Memcached fits caching expensive database query results to cut load. Google App Engine starts at Free and Memcached at Free.
Which is cheaper, Google App Engine or Memcached?
Google App Engine starts at Free and Memcached at Free.
Does Google App Engine or Memcached run on more platforms?
Google App Engine runs on Web, API. Memcached runs on Linux, macOS, Windows, Self-hosted.
Can I use Google App Engine for free?
Both have a free tier, so you can try either at no cost before committing.
What is Google App Engine best used for?
Google App Engine is most often used for a small web app or api that fits inside the daily free tier, an existing app engine codebase that needs to keep running, a team wanting simple deploys without kubernetes, background services scaled to zero between requests. Of those, a small web app or api that fits inside the daily free tier and an existing app engine codebase that needs to keep running are not what Memcached is typically brought in for.
What can Google App Engine do that Memcached cannot?
Google App Engine covers Standard environment, Flexible environment, Automatic scaling, Traffic splitting. Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use.

Answered from the vendors’ own pages

Google App Engine: Is App Engine free?

Standard has a daily free tier per project. The flexible environment has none.

Memcached: Is Memcached free?

Yes, open source with no licence fee.

Google App Engine: How is it billed?

Standard by instance hour by class, flexible by vCPU and memory hour.

Memcached: Memcached or Redis?

Memcached is a pure cache: simpler, multithreaded and very predictable. Redis adds persistence, replication and rich data structures, which is why it is the default choice unless you specifically want a cache and nothing more.

Google App Engine: App Engine or Cloud Run?

Cloud Run suits most new container workloads. App Engine suits existing apps and simple deployments.

Memcached: Does Memcached persist data?

No. Everything is in memory and lost on restart, by design.

Share

Related pages

Other head to heads