Softwr

Databases · head to head

Memcached vs Upstash

M

Memcached

Databases

Distributed memory object caching system

From
Free
Free plan
Yes
Upstash logo

Upstash

Databases

Serverless data for modern developers

From
Free
Free plan
Yes

The short version

  • Memcached is free; Upstash starts at $10/mo.
  • Only Memcached lists in-memory key-value cache; only Upstash lists serverless Redis.
  • Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.
  • Where Upstash falls short: HTTP-based REST API only, no TCP connections means higher latency than self-hosted or connection-pooled Redis.

How do Memcached and Upstash differ?

Memcached and Upstash differ on platforms and year founded (2003 against 2020). Only the attributes on which Memcached and Upstash actually diverge.

Attributes where Memcached and Upstash differ
AttributeMemcachedUpstash
PlatformsLinux, macOS, Windows, Self-hostedAPI, Vercel Edge, Web, AWS Lambda
Founded20032020

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

Not yet recorded: pricing model for Upstash.

Which features does each one have?

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

  • Serverless Redis
  • Serverless Kafka
  • QStash
  • Global Replication
  • REST API
  • Edge Functions Support
  • Rate Limiting
  • Caching

What is each one used for?

Memcached is most often brought in for caching expensive database query results to cut load; Upstash for caching. The jobs each tool is most often brought in to do.

Memcached

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

Upstash

  • Cachingnot Memcached
  • Session storagenot Memcached
  • Real-time messagingnot Memcached
  • Rate limitingnot Memcached
  • Serverless backendsnot Memcached

Where do Memcached and Upstash fall short?

Memcached's most cited limit: no persistence at all: restart a node and its cache is gone, which every design must assume. Upstash's: HTTP-based REST API only, no TCP connections means higher latency than self-hosted or connection-pooled Redis. 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

Upstash

  • HTTP-based REST API only, no TCP connections means higher latency than self-hosted or connection-pooled Redis
  • Rate limiting occurs when traffic exceeds configured budget cap or request limits
  • Kafka service discontinued in March 2025, requiring migration to Upstash Workflow or alternatives
  • Limited Redis feature support compared to self-hosted Redis or Redis Cloud
  • High-request-volume workloads can accumulate significant costs due to per-request pricing model

How much do Memcached and Upstash cost?

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

Memcached

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

Upstash

Free
  • FreeFree
    • 256 MB data
    • 500K commands per month
    • 10 GB bandwidth
  • Pay-as-you-go$0.2
    • Per-request billing
    • Storage at $0.25/GB
    • Unlimited commands
  • Fixed Plan$10/mo
    • 250 MB Redis
    • Predictable pricing
    • Global replication available at higher tiers

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 Upstash if

  • You need serverless redis.
  • You want to start without paying.
  • You work on API, Vercel Edge, Web, AWS Lambda.
  • You also want serverless kafka.

Questions people ask

Is Memcached or Upstash better?
It depends on the job. Memcached fits caching expensive database query results to cut load; Upstash fits caching. Memcached starts at Free and Upstash at Free.
Which is cheaper, Memcached or Upstash?
Memcached starts at Free and Upstash at Free.
Does Memcached or Upstash run on more platforms?
Memcached runs on Linux, macOS, Windows, Self-hosted. Upstash runs on API, Vercel Edge, Web, AWS Lambda.
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 Upstash is typically brought in for.
What can Memcached do that Upstash cannot?
Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use. Upstash covers Serverless Redis, Serverless Kafka, QStash, Global Replication.

Answered from the vendors’ own pages

Memcached: Is Memcached free?

Yes, open source with no licence fee.

Upstash: Does Upstash have a free tier?

Yes. The free tier provides 256 MB of data and 500,000 commands per month with 10 GB of bandwidth in a single region, no credit card required.

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.

Upstash: How does Upstash work with edge platforms like Vercel and Cloudflare Workers?

Upstash uses a REST API instead of TCP connections, enabling it to work from Vercel Edge, Cloudflare Workers, and AWS Lambda without persistent connections or connection pooling.

Source
Memcached: Does Memcached persist data?

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

Upstash: What programming languages are supported?

Upstash provides native SDKs for Python, Node.js, Go, and Rust. Java, C#, and PHP developers can use the REST API or community libraries.

Source
Upstash: Is Upstash Kafka still available?

No. Upstash Kafka was deprecated on September 11, 2024 and fully discontinued on March 11, 2025. Upstash Workflow is now recommended for durable serverless messaging and task queuing.

Source
Upstash: How is Upstash pricing structured?

Upstash uses per-request pricing at $0.20 per 100K commands for Redis, $0.25/GB for storage, and $0.40 per 100K requests for Vector database. Idle applications cost nothing.

Source
Upstash: Can Upstash be used with AWS Lambda?

Yes. Upstash works with AWS Lambda via its REST API, eliminating the need for connection pooling and making it ideal for stateless serverless functions.

Source
Share

Related pages

Other head to heads