Softwr

APIs · head to head

Hasura vs Memcached

Hasura logo

Hasura

APIs

GraphQL engine that instantly creates production-ready GraphQL API from databases

From
Free
Free plan
Yes
M

Memcached

Databases

Distributed memory object caching system

From
Free
Free plan
Yes

The short version

  • Hasura is an open-source engine.
  • Memcached is free; Hasura starts at $5/mo.
  • Only Hasura lists GraphQL API; only Memcached lists in-memory key-value cache.
  • Where Hasura falls short: active model definition: model/command accessed more than 1,000 times monthly.
  • Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.

How do Hasura and Memcached differ?

Hasura and Memcached differ on pricing model, platforms and category (APIs against Databases). Only the attributes on which Hasura and Memcached actually diverge.

Attributes where Hasura and Memcached differ
AttributeHasuraMemcached
Pricing modelFreemiumOpen source, no licence fee; managed cloud billed separately
PlatformsWebLinux, macOS, Windows, Self-hosted
CategoryAPIsDatabases
Founded20172003

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

Which features does each one have?

They share no listed features; 11 appear only for Hasura 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 Hasura

  • GraphQL API
  • Real-time subscriptions
  • Access control
  • PostgreSQL
  • MySQL
  • Webhooks
  • REST APIs
  • Cloud support

Only in Memcached

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

What is each one used for?

Hasura is most often brought in for automatic GraphQL API generation from existing databases; Memcached for caching expensive database query results to cut load. The jobs each tool is most often brought in to do.

Hasura

  • Automatic GraphQL API generation from existing databasesnot Memcached
  • Real-time data subscriptions for modern applicationsnot Memcached
  • Backend infrastructure for web and mobile applicationsnot Memcached
  • Event-triggered webhooks for database changesnot Memcached

Memcached

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

Where do Hasura and Memcached fall short?

Hasura's most cited limit: active model definition: model/command accessed more than 1,000 times monthly. 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.

Hasura

  • Active model definition: model/command accessed more than 1,000 times monthly
  • Private DDN requires Base or Advanced plan
  • Free DDN plan allows 1 supergraph developer; unlimited developers need the Base plan or above
  • Free plan keeps traces and API performance metrics for only 15 minutes, against 30 days on paid plans

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 Hasura and Memcached cost?

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

Hasura

Free
  • DDN FreeFree
    • Unlimited models
    • 1 supergraph developer
    • 15-minute observability retention
  • DDN Base$5/mo
    • Per active model billing
    • Unlimited developers
    • 30-day observability retention
  • DDN Advanced$30/mo
    • Per active model billing
    • Federated collaboration
    • Multi-repo CI/CD

Memcached

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

Which should you pick?

Choose Hasura if

  • You need graphql api.
  • You want to start without paying.
  • You also want real-time subscriptions.

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 Hasura or Memcached better?
It depends on the job. Hasura fits automatic GraphQL API generation from existing databases; Memcached fits caching expensive database query results to cut load. Hasura starts at Free and Memcached at Free.
Which is cheaper, Hasura or Memcached?
Hasura starts at Free and Memcached at Free.
Does Hasura or Memcached run on more platforms?
Hasura runs on Web. Memcached runs on Linux, macOS, Windows, Self-hosted.
Can I use Hasura for free?
Both have a free tier, so you can try either at no cost before committing.
What is Hasura best used for?
Hasura is most often used for automatic graphql api generation from existing databases, real-time data subscriptions for modern applications, backend infrastructure for web and mobile applications, event-triggered webhooks for database changes. Of those, automatic graphql api generation from existing databases and real-time data subscriptions for modern applications are not what Memcached is typically brought in for.
What can Hasura do that Memcached cannot?
Hasura covers GraphQL API, Real-time subscriptions, Access control, PostgreSQL. Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use.

Answered from the vendors’ own pages

Hasura: How much does Hasura cost?

Hasura DDN Free is free. DDN Base starts at $5/active model/month, and DDN Advanced starts at $30/active model/month.

Source
Memcached: Is Memcached free?

Yes, open source with no licence fee.

Hasura: What is an active model in Hasura pricing?

An active model is defined as any model or command accessed more than 1,000 times monthly.

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.

Hasura: Is there a free version of Hasura?

Yes, Hasura DDN Free is always free and includes unlimited models, 1 supergraph developer, and 15-minute observability retention.

Source
Memcached: Does Memcached persist data?

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

Share

Related pages

Other head to heads