Softwr

Databases · head to head

Amazon ECS vs Memcached

Amazon ECS logo

Amazon ECS

Databases

AWS managed container orchestration, free to use, billed for Fargate or EC2 compute

From
On request
Free plan
No
M

Memcached

Databases

Distributed memory object caching system

From
Free
Free plan
Yes

The short version

  • Amazon ECS is a fully managed container orchestration service on AWS.
  • Memcached is free; Amazon ECS prices on request.
  • Only Amazon ECS lists fargate serverless containers; only Memcached lists in-memory key-value cache.
  • Where Amazon ECS falls short: runs only on AWS, with no portability to other clouds.
  • Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.

How do Amazon ECS and Memcached differ?

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

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

Not yet recorded: category for Amazon ECS, founded for Amazon ECS.

Which features does each one have?

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

  • Fargate serverless containers
  • EC2 launch type
  • ECS Anywhere for on-premises and edge
  • ECS Managed Instances
  • IAM-based access control
  • Automated patching
  • Encryption in transit and at rest
  • Spot capacity support

Only in Memcached

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

What is each one used for?

Amazon ECS is most often brought in for running containerised web services on AWS; Memcached for caching expensive database query results to cut load. The jobs each tool is most often brought in to do.

Amazon ECS

  • Running containerised web services on AWSnot Memcached
  • Batch jobs on Spot capacitynot Memcached
  • Serverless containers without managing serversnot Memcached
  • Hybrid workloads using ECS Anywherenot Memcached

Memcached

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

Where do Amazon ECS and Memcached fall short?

Amazon ECS's most cited limit: runs only on AWS, with no portability to other clouds. 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 ECS

  • Runs only on AWS, with no portability to other clouds
  • Task definitions and APIs are AWS-specific, unlike Kubernetes
  • Costs combine ECS-adjacent services such as EC2, load balancers and IPv4
  • Smaller ecosystem of third-party tooling than Kubernetes

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

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

Amazon ECS

On request

No published plan breakdown. See the Amazon ECS review.

Memcached

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

Which should you pick?

Choose Amazon ECS if

  • You need fargate serverless containers.
  • You also want ec2 launch type.

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 ECS or Memcached better?
It depends on the job. Amazon ECS fits running containerised web services on AWS; Memcached fits caching expensive database query results to cut load. Amazon ECS starts at On request and Memcached at Free.
Which is cheaper, Amazon ECS or Memcached?
Memcached has a free tier; the other does not. Paid plans start at On request for Amazon ECS and Free for Memcached.
Does Amazon ECS or Memcached run on more platforms?
Amazon ECS 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 ECS starts at On request.
What is Amazon ECS best used for?
Amazon ECS is most often used for running containerised web services on aws, batch jobs on spot capacity, serverless containers without managing servers, hybrid workloads using ecs anywhere. Of those, running containerised web services on aws and batch jobs on spot capacity are not what Memcached is typically brought in for.
What can Amazon ECS do that Memcached cannot?
Amazon ECS covers Fargate serverless containers, EC2 launch type, ECS Anywhere for on-premises and edge, ECS Managed Instances. Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use.

Answered from the vendors’ own pages

Amazon ECS: Does ECS cost extra?

No. There is no additional charge for Amazon ECS orchestration; you pay for the compute and resources your containers use.

Source
Memcached: Is Memcached free?

Yes, open source with no licence fee.

Amazon ECS: Can ECS run outside AWS?

ECS Anywhere runs containers on registered on-premises instances at $0.01025 per instance per hour.

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 ECS: What compute options does ECS offer?

AWS Fargate, Amazon EC2 and ECS Anywhere, plus ECS Managed Instances.

Source
Memcached: Does Memcached persist data?

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

Share

Related pages

Other head to heads