Softwr

Databases · head to head

AWS Direct Connect vs Memcached

AWS Direct Connect logo

AWS Direct Connect

Databases

Dedicated private network links from your data centre to AWS

From
$0.03/hour
Free plan
No
M

Memcached

Databases

Distributed memory object caching system

From
Free
Free plan
Yes

The short version

  • Memcached is free; AWS Direct Connect starts at $0.03/mo.
  • Only AWS Direct Connect lists dedicated connections; only Memcached lists in-memory key-value cache.
  • Where AWS Direct Connect falls short: provisioning takes weeks and involves a colocation facility or partner, so it cannot be used for a quick or short-term need.
  • Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.

How do AWS Direct Connect and Memcached differ?

AWS Direct Connect and Memcached differ on starting price ($0.03/hour against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS Direct Connect and Memcached actually diverge.

Attributes where AWS Direct Connect and Memcached differ
AttributeAWS Direct ConnectMemcached
Starting price$0.03/hourFree
Pricing modelPer port hour plus per GB data transfer outOpen source, no licence fee; managed cloud billed separately
Free tierNoYes
PlatformsWebLinux, macOS, Windows, Self-hosted

Not yet recorded: category for AWS Direct Connect, founded for AWS Direct Connect.

Which features does each one have?

They share no listed features; 6 appear only for AWS Direct Connect 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 AWS Direct Connect

  • Dedicated connections
  • Hosted connections
  • Virtual interfaces
  • Link aggregation groups
  • MACsec
  • SiteLink

Only in Memcached

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

What is each one used for?

AWS Direct Connect is most often brought in for hybrid applications that need consistent latency between a data centre and a VPC; Memcached for caching expensive database query results to cut load. The jobs each tool is most often brought in to do.

AWS Direct Connect

  • Moving tens of terabytes to S3 on a dedicated circuit instead of over the internetnot Memcached
  • Hybrid applications that need consistent latency between a data centre and a VPCnot Memcached
  • Regulated workloads that must not traverse the public internetnot Memcached
  • Reducing data transfer out costs for steady high-volume egressnot Memcached

Memcached

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

Where do AWS Direct Connect and Memcached fall short?

AWS Direct Connect's most cited limit: A resilient design needs at least two connections at two locations, which doubles port fees before any traffic is sent. 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.

AWS Direct Connect

  • Provisioning takes weeks and involves a colocation facility or partner, so it cannot be used for a quick or short-term need
  • A resilient design needs at least two connections at two locations, which doubles port fees before any traffic is sent
  • Colocation cross-connect and carrier circuit costs are billed by third parties and are often larger than the AWS port charge
  • Data transfer out is still metered per GB, and the rate depends on the Region and the Direct Connect location, so cost modelling needs the full rate table
  • The connection is not encrypted by default; adding a VPN or MACsec is extra configuration, and MACsec is only on certain dedicated ports

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 AWS Direct Connect and Memcached cost?

AWS Direct Connect starts at $0.03/mo; Memcached is free to use. Plan by plan below, from each vendor's own pricing page.

AWS Direct Connect

$0.03/hour
  • Hosted connection$0.03/hour
    • 50 Mbps $0.03 per hour, 1 Gbps $0.33, 10 Gbps $2.48 (excluding Japan)
    • Ordered through an AWS Direct Connect Partner
  • Dedicated connection$0.3/hour
    • 1 Gbps $0.30 per hour, 10 Gbps $2.25, 100 Gbps $22.50, 400 Gbps $85.00 (excluding Japan)
    • Ordered directly from AWS at a Direct Connect location
  • Data transfer$0.02/gb
    • Data in is $0.00 per GB
    • Data out from US Regions to US locations is $0.02 per GB, higher for other geographies

Memcached

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

Which should you pick?

Choose AWS Direct Connect if

  • You need dedicated connections.
  • You also want hosted connections.

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 AWS Direct Connect or Memcached better?
It depends on the job. AWS Direct Connect fits moving tens of terabytes to S3 on a dedicated circuit instead of over the internet; Memcached fits caching expensive database query results to cut load. AWS Direct Connect starts at $0.03/hour and Memcached at Free.
Which is cheaper, AWS Direct Connect or Memcached?
Memcached has a free tier; the other does not. Paid plans start at $0.03/hour for AWS Direct Connect and Free for Memcached.
Does AWS Direct Connect or Memcached run on more platforms?
AWS Direct Connect 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. AWS Direct Connect starts at $0.03/hour.
What is AWS Direct Connect best used for?
AWS Direct Connect is most often used for moving tens of terabytes to s3 on a dedicated circuit instead of over the internet, hybrid applications that need consistent latency between a data centre and a vpc, regulated workloads that must not traverse the public internet, reducing data transfer out costs for steady high-volume egress. Of those, moving tens of terabytes to s3 on a dedicated circuit instead of over the internet and hybrid applications that need consistent latency between a data centre and a vpc are not what Memcached is typically brought in for.
What can AWS Direct Connect do that Memcached cannot?
AWS Direct Connect covers Dedicated connections, Hosted connections, Virtual interfaces, Link aggregation groups. Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use.

Answered from the vendors’ own pages

AWS Direct Connect: How much does AWS Direct Connect cost?

A 1 Gbps dedicated port is $0.30 per hour and a 10 Gbps port $2.25 per hour, plus $0.02 per GB data transfer out in US locations, per the AWS pricing page.

Memcached: Is Memcached free?

Yes, open source with no licence fee.

AWS Direct Connect: Is data in free?

Yes. Data transferred into AWS over Direct Connect is $0.00 per GB at all locations.

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.

AWS Direct Connect: Do I need a VPN with Direct Connect?

Not for connectivity, but Direct Connect is not encrypted by default; a VPN over it or MACsec adds encryption.

Memcached: Does Memcached persist data?

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

Share

Related pages

Other head to heads