Softwr

Databases · head to head

Memcached vs Neo4j

M

Memcached

Databases

Distributed memory object caching system

From
Free
Free plan
Yes
Neo4j logo

Neo4j

Databases

Graph database

From
Free
Free plan
Yes

The short version

  • Neo4j is a native graph database.
  • Memcached is free; Neo4j starts at $65/mo.
  • Only Memcached lists in-memory key-value cache; only Neo4j lists native Graph Storage.
  • Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.
  • Where Neo4j falls short: AuraDB Free has no service availability SLA, no backups and no point-in-time recovery.

How do Memcached and Neo4j differ?

Memcached and Neo4j differ on pricing model, platforms and year founded (2003 against 2007). Only the attributes on which Memcached and Neo4j actually diverge.

Attributes where Memcached and Neo4j differ
AttributeMemcachedNeo4j
Pricing modelOpen source, no licence fee; managed cloud billed separatelyFreemium
PlatformsLinux, macOS, Windows, Self-hostedLinux, Windows, macOS, Self-hosted, Web
Founded20032007

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

Which features does each one have?

They share no listed features; 4 appear only for Memcached and 17 only for Neo4j. 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 Memcached

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

Only in Neo4j

  • Native Graph Storage
  • Cypher Query Language
  • ACID Transactions
  • High Availability
  • Graph Data Science
  • Full-text Search
  • Native Indexes
  • GraphQL

What is each one used for?

Memcached is most often brought in for caching expensive database query results to cut load; Neo4j for graph database for learning and exploration. The jobs each tool is most often brought in to do.

Memcached

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

Neo4j

  • Graph database for learning and explorationnot Memcached
  • Production workloads requiring high availability and multi-zone redundancynot Memcached
  • Enterprise deployments needing custom infrastructurenot Memcached

Where do Memcached and Neo4j fall short?

Memcached's most cited limit: no persistence at all: restart a node and its cache is gone, which every design must assume. Neo4j's: AuraDB Free has no service availability SLA, no backups and no point-in-time recovery. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

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

Neo4j

  • AuraDB Free has no service availability SLA, no backups and no point-in-time recovery
  • AuraDB Free imposes limits on node and relationship counts and runs single-zone only
  • SSO authentication and role-based access control are excluded from AuraDB Free and AuraDB Professional, starting only at Business Critical at $146 per GB per month with a 2GB minimum cluster
  • AuraDB Professional starts at $65 per GB per month with a minimum 1GB cluster and caps at 128GB memory per instance
  • AuraDB Professional backups are daily with only 7-day retention, against 30 days on Business Critical
  • Customer managed keys and private endpoints are available only on AuraDB Virtual Dedicated Cloud, which is quote only with no published price
  • Change data capture, query log forwarding, secondaries and access to Neo4j Professional Services are excluded below the Business Critical tier
  • Support on AuraDB Free is community only and AuraDB Professional is best effort, with 24x7 one-hour response starting at Business Critical
  • AuraDB Virtual Dedicated Cloud is sold on prepaid contract terms with enterprise commercial negotiation rather than self-serve card payment

How much do Memcached and Neo4j cost?

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

Memcached

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

Neo4j

Free
  • FreeFree
    • Learning and exploration access
    • No credit card required
    • All graph tools included
  • AuraDB Professional$65/gb/month
    • 1GB minimum cluster
    • Hourly billing available ($0.09/hour for 1GB)
    • Daily backups with 7-day retention
  • AuraDB Business Critical$146/gb/month
    • 2GB minimum cluster
    • Hourly billing available ($0.40/hour for 2GB)
    • Up to 512GB maximum
  • Virtual Dedicated CloudOn request
    • Custom pricing via sales contact
    • Dedicated VPC infrastructure
    • Hourly backups with 60-day retention

Which should you pick?

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.

Choose Neo4j if

  • You need native graph storage.
  • You want to start without paying.
  • You work on Linux, Windows, macOS, Self-hosted, Web.
  • You also want cypher query language.

Questions people ask

Is Memcached or Neo4j better?
It depends on the job. Memcached fits caching expensive database query results to cut load; Neo4j fits graph database for learning and exploration. Memcached starts at Free and Neo4j at Free.
Which is cheaper, Memcached or Neo4j?
Memcached starts at Free and Neo4j at Free.
Does Memcached or Neo4j run on more platforms?
Memcached runs on Linux, macOS, Windows, Self-hosted. Neo4j runs on Linux, Windows, macOS, Self-hosted, Web.
Can I use Memcached for free?
Both have a free tier, so you can try either at no cost before committing.
What is Memcached best used for?
Memcached is most often used for caching expensive database query results to cut load, session storage where losing sessions on restart is acceptable, fronting an api whose responses are costly and change slowly. Of those, caching expensive database query results to cut load and session storage where losing sessions on restart is acceptable are not what Neo4j is typically brought in for.
What can Memcached do that Neo4j cannot?
Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use. Neo4j covers Native Graph Storage, Cypher Query Language, ACID Transactions, High Availability.

Answered from the vendors’ own pages

Memcached: Is Memcached free?

Yes, open source with no licence fee.

Neo4j: Is Neo4j free?

Neo4j offers a free tier (AuraDB Free) for learning and exploration with no credit card required. Community Edition is also free and GPL3-licensed. Paid tiers start at $65/GB per month for AuraDB Professional.

Source
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.

Neo4j: What does Neo4j's Professional tier include?

AuraDB Professional costs $65/GB per month with a 1GB minimum cluster, includes daily backups with 7-day retention, single-zone availability, and best-effort support. Hourly billing is available at $0.09/hour per GB.

Source
Memcached: Does Memcached persist data?

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

Neo4j: What is Neo4j's most advanced pricing tier?

AuraDB Business Critical costs $146/GB per month with a 2GB minimum and includes multi-zone redundancy, 99.95% uptime SLA, 24/7 premium support with one-hour response times, and point-in-time recovery.

Source
Share

Related pages

Other head to heads