Softwr

Cloud · head to head

Amazon S3 vs Memcached

Amazon S3 logo

Amazon S3

Cloud

Amazon Web Services' pay-as-you-go object storage service

From
On request
Free plan
No
M

Memcached

Databases

Distributed memory object caching system

From
Free
Free plan
Yes

The short version

  • Memcached is free; Amazon S3 prices on request.
  • Only Amazon S3 lists object storage in buckets; only Memcached lists in-memory key-value cache.
  • Where Amazon S3 falls short: billing depends on storage class, requests and transfer, so total cost is hard to predict.
  • Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.

How do Amazon S3 and Memcached differ?

Amazon S3 and Memcached differ on starting price (On request against Free), pricing model and free tier (No against Yes). Only the attributes on which Amazon S3 and Memcached actually diverge.

Attributes where Amazon S3 and Memcached differ
AttributeAmazon S3Memcached
Starting priceOn requestFree
Pricing modelUsage-basedOpen source, no licence fee; managed cloud billed separately
Free tierNoYes
PlatformsWebLinux, macOS, Windows, Self-hosted
CategoryCloudDatabases

Not yet recorded: founded for Amazon S3.

Which features does each one have?

They share no listed features; 9 appear only for Amazon S3 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 Amazon S3

  • Object storage in buckets
  • Multiple storage classes including Glacier
  • S3 Intelligent-Tiering
  • Versioning
  • Replication
  • Encryption by default
  • Static website hosting
  • Time-limited authenticated URLs

Only in Memcached

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

What is each one used for?

Amazon S3 is most often brought in for data lake storage for analytics; Memcached for caching expensive database query results to cut load. The jobs each tool is most often brought in to do.

Amazon S3

  • Data lake storage for analyticsnot Memcached
  • Application and mobile app file storagenot Memcached
  • Long-term archives in Glacier classesnot Memcached
  • Static website hostingnot Memcached

Memcached

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

Where do Amazon S3 and Memcached fall short?

Amazon S3's most cited limit: billing depends on storage class, requests and transfer, so total cost is hard to predict. 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.

Amazon S3

  • Billing depends on storage class, requests and transfer, so total cost is hard to predict
  • Outbound internet data transfer is charged beyond the first 100 GB per month
  • Objects larger than 5 GB need multipart upload because single uploads are capped at 5 GB
  • Versioning is disabled by default and must be switched on per bucket
  • Available only on AWS; moving data elsewhere means egress and re-integration work

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

Memcached is free to use. Plan by plan below, from each vendor's own pricing page.

Amazon S3

On request

No published plan breakdown. See the Amazon S3 review.

Memcached

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

Which should you pick?

Choose Amazon S3 if

  • You need object storage in buckets.
  • You also want multiple storage classes including glacier.

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 Amazon S3 or Memcached better?
It depends on the job. Amazon S3 fits data lake storage for analytics; Memcached fits caching expensive database query results to cut load. Amazon S3 starts at On request and Memcached at Free.
Which is cheaper, Amazon S3 or Memcached?
Memcached has a free tier; the other does not. Paid plans start at On request for Amazon S3 and Free for Memcached.
Does Amazon S3 or Memcached run on more platforms?
Amazon S3 runs on Web. Memcached runs on Linux, macOS, Windows, Self-hosted.
Can I use Memcached for free?
Yes. Memcached has a free tier, so you can try it without paying. Amazon S3 starts at On request.
What is Amazon S3 best used for?
Amazon S3 is most often used for data lake storage for analytics, application and mobile app file storage, long-term archives in glacier classes, static website hosting. Of those, data lake storage for analytics and application and mobile app file storage are not what Memcached is typically brought in for.
What can Amazon S3 do that Memcached cannot?
Amazon S3 covers Object storage in buckets, Multiple storage classes including Glacier, S3 Intelligent-Tiering, Versioning. Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use.

Answered from the vendors’ own pages

Amazon S3: What is Amazon S3?

Amazon S3 is an object storage service from AWS, described as built to retrieve any amount of data from anywhere. It is used for data lakes, cloud-native applications and mobile apps.

Source
Memcached: Is Memcached free?

Yes, open source with no licence fee.

Amazon S3: How is S3 priced?

AWS says the cost depends on object size, storage duration and storage class, with no minimum charge. Inbound transfer from the internet is free, as are transfers between buckets in the same Region, and the first 100 GB per month out to the internet is free.

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.

Amazon S3: What is the maximum object size in S3?

Objects can be up to 5 TB. A single upload operation is capped at 5 GB, so larger objects use the multipart upload API.

Source
Memcached: Does Memcached persist data?

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

Amazon S3: Is S3 versioning on by default?

No. Versioning is available but disabled by default. Default bucket-level encryption was added in November 2017.

Source
Share

Related pages

Other head to heads