Softwr

Databases · head to head

Amazon ElastiCache vs CockroachDB

Amazon ElastiCache logo

Amazon ElastiCache

Databases

AWS managed in-memory cache for Valkey, Redis OSS and Memcached

From
On request
Free plan
No
CockroachDB logo

CockroachDB

Databases

The cloud-native distributed SQL database

From
Free
Free plan
Yes

The short version

  • Amazon ElastiCache is an AWS managed in-memory caching service compatible; CockroachDB is a cloud-native distributed SQL database.
  • CockroachDB has a free plan, then $0.057/mo; Amazon ElastiCache starts at $0.084/mo.
  • Only Amazon ElastiCache lists valkey, Redis OSS and Memcached engines; only CockroachDB lists distributed SQL.
  • Where Amazon ElastiCache falls short: runs only inside AWS, so it is not usable on premises or in other clouds.
  • Where CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).

How do Amazon ElastiCache and CockroachDB differ?

Amazon ElastiCache and CockroachDB differ on starting price (On request against Free), pricing model (Usage-based against Freemium) and free tier (No against Yes). Only the attributes on which Amazon ElastiCache and CockroachDB actually diverge.

Attributes where Amazon ElastiCache and CockroachDB differ
AttributeAmazon ElastiCacheCockroachDB
Starting priceOn requestFree
Pricing modelUsage-basedFreemium
Free tierNoYes
PlatformsWebAWS, GCP, Azure

Identical on both: category (Databases).

Not yet recorded: founded for Amazon ElastiCache.

Which features does each one have?

They share no listed features; 8 appear only for Amazon ElastiCache and 20 only for CockroachDB. 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 ElastiCache

  • Valkey, Redis OSS and Memcached engines
  • Serverless caching
  • Global Datastore cross-Region replication
  • Durability options
  • Semantic and prompt caching for AI workloads
  • Encryption at rest and in transit
  • IAM access control and VPC isolation
  • Reserved nodes and Savings Plans

Only in CockroachDB

  • Distributed SQL
  • Automatic Sharding
  • Multi-region Replication
  • Geo-partitioning
  • ACID Transactions
  • Horizontal Scaling
  • Survivability
  • PostgreSQL Compatibility

What is each one used for?

Amazon ElastiCache is most often brought in for session and page caching for web apps; CockroachDB for distributed SQL database for scalable applications. The jobs each tool is most often brought in to do.

Amazon ElastiCache

  • Session and page caching for web appsnot CockroachDB
  • Leaderboards using sorted setsnot CockroachDB
  • Caching LLM prompts and semantic resultsnot CockroachDB
  • Reducing load on primary databasesnot CockroachDB

CockroachDB

  • Distributed SQL database for scalable applicationsnot Amazon ElastiCache
  • Multi-region deployment and failovernot Amazon ElastiCache

Where do Amazon ElastiCache and CockroachDB fall short?

Amazon ElastiCache's most cited limit: runs only inside AWS, so it is not usable on premises or in other clouds. CockroachDB's: basic and Standard tiers limited to AWS and GCP (select regions only). Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon ElastiCache

  • Runs only inside AWS, so it is not usable on premises or in other clouds
  • Partial hours are billed as full hours for on-demand nodes
  • Redis OSS Extended Support carries an 80% premium in years 1 and 2
  • Reserved node discounts are not available with Serverless

CockroachDB

  • Basic and Standard tiers limited to AWS and GCP (select regions only)
  • Azure support restricted to Advanced tier only
  • Basic tier limited to 50 million RUs and 10 GiB storage per month
  • Advanced tier starts at $0.60/hour for 4 vCPUs minimum
  • 3 TiB maximum storage on Basic and Standard tiers, 10 TiB per node on Advanced

How much do Amazon ElastiCache and CockroachDB cost?

Amazon ElastiCache starts at $0.084/mo; CockroachDB has a free plan, with paid plans from $0.057/mo. Plan by plan below, from each vendor's own pricing page.

Amazon ElastiCache

On request
  • Serverless Valkey data storage (per GB-hour)$0.084/hour

CockroachDB

Free
  • Standard$0.057/vcpu-hour
  • Mission Critical$0.162/vcpu-hour

Which should you pick?

Choose Amazon ElastiCache if

  • You need valkey, redis oss and memcached engines.
  • You also want serverless caching.

Choose CockroachDB if

  • You need distributed sql.
  • You want to start without paying.
  • You work on AWS, GCP, Azure.
  • You also want automatic sharding.

Questions people ask

Is Amazon ElastiCache or CockroachDB better?
It depends on the job. Amazon ElastiCache fits session and page caching for web apps; CockroachDB fits distributed SQL database for scalable applications. Amazon ElastiCache starts at On request and CockroachDB at Free.
Which is cheaper, Amazon ElastiCache or CockroachDB?
CockroachDB has a free tier; the other does not. Paid plans start at On request for Amazon ElastiCache and Free for CockroachDB.
Does Amazon ElastiCache or CockroachDB run on more platforms?
Amazon ElastiCache runs on Web. CockroachDB runs on AWS, GCP, Azure.
Can I use CockroachDB for free?
Yes. CockroachDB has a free tier, so you can try it without paying. Amazon ElastiCache starts at On request.
What is Amazon ElastiCache best used for?
Amazon ElastiCache is most often used for session and page caching for web apps, leaderboards using sorted sets, caching llm prompts and semantic results, reducing load on primary databases. Of those, session and page caching for web apps and leaderboards using sorted sets are not what CockroachDB is typically brought in for.
What can Amazon ElastiCache do that CockroachDB cannot?
Amazon ElastiCache covers Valkey, Redis OSS and Memcached engines, Serverless caching, Global Datastore cross-Region replication, Durability options. CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning.

Answered from the vendors’ own pages

Amazon ElastiCache: Which engines does ElastiCache support?

It supports Valkey, Redis OSS and Memcached.

Source
CockroachDB: What does the free Basic tier include?

The Basic tier is free and includes 50 million RUs and 10 GiB storage per month, with a maximum compute of 30K RU/sec. No credit card is required to start.

Source
Amazon ElastiCache: How is ElastiCache priced?

Options are on-demand nodes billed per node-hour, serverless billed by GB-hours of data and ECPUs, Database Savings Plans, and reserved nodes with 1 or 3 year terms. There is no minimum fee for on-demand or serverless.

Source
CockroachDB: How much do the paid tiers cost?

Standard tier starts at $0.18 per hour for 2 vCPUs, and Advanced tier starts at $0.60 per hour for 4 vCPUs. Both tiers support additional resources with higher costs for increased compute and storage.

Source
Amazon ElastiCache: Is there a free tier?

For accounts created before 15 July 2025, 750 hours a month of cache.t3.micro for up to 12 months. Newer accounts choose a Free or Paid Plan that includes 100 dollars in credits.

Source
CockroachDB: What are the storage limits for each tier?

Basic plan supports up to 3 TiB storage, Standard tier up to 3 TiB, and Advanced tier up to 10 TiB per node with unlimited total storage.

Source
Amazon ElastiCache: When did it launch?

ElastiCache launched on 22 August 2011 with Memcached, adding Redis in September 2013.

Source
CockroachDB: Can I get trial credits before paying?

Yes, new users can try CockroachDB free with $400 in credits. The Basic and Standard plans do not require a credit card to start.

Source
CockroachDB: Do legacy contracts have different pricing?

Customers with annual or multi-year contracts entered before December 1, 2024 can view legacy pricing terms on a separate page, which apply until their contract renewal date.

Source
Share

Related pages

Other head to heads