Softwr

Cloud · head to head

Amazon S3 vs etcd

Amazon S3 logo

Amazon S3

Cloud

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

From
On request
Free plan
No
etcd logo

etcd

Databases

A distributed key-value store using Raft consensus, built for cluster coordination rather than application data.

From
Free
Free plan
Yes

The short version

  • etcd is free; Amazon S3 prices on request.
  • Only Amazon S3 lists object storage in buckets; only etcd lists raft consensus.
  • Where Amazon S3 falls short: billing depends on storage class, requests and transfer, so total cost is hard to predict.

How do Amazon S3 and etcd differ?

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

Attributes where Amazon S3 and etcd differ
AttributeAmazon S3etcd
Starting priceOn requestFree
Pricing modelUsage-basedOpen-source
Free tierNoYes
CategoryCloudDatabases

Identical on both: platforms (Web).

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 8 only for etcd. 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 etcd

  • Raft consensus
  • Linearizable reads
  • Transactions
  • Leases
  • Watches
  • MVCC revision history
  • Role-based access control
  • Snapshot backup and restore

What is each one used for?

Amazon S3 is most often brought in for data lake storage for analytics; etcd for coordinating failover in a clustered database, as Patroni does for PostgreSQL. The jobs each tool is most often brought in to do.

Amazon S3

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

etcd

  • Storing Kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doingnot Amazon S3
  • Leader election and distributed locking in a home-grown scheduler or control plane, using leases and transactionsnot Amazon S3
  • Service discovery and dynamic configuration where readers need to be notified of changes rather than poll for themnot Amazon S3
  • Coordinating failover in a clustered database, as Patroni does for PostgreSQLnot Amazon S3

Where do Amazon S3 and etcd fall short?

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

etcd

  • It is sized for coordination data, not application data: the default backend quota is 2 GB and 8 GB is the documented recommended maximum, and exceeding it puts the cluster into a NOSPACE alarm where it accepts no writes until an operator compacts, defragments and clears the alarm by hand
  • Every write is replicated and fsynced before acknowledgement, so cluster performance is bounded by the slowest disk in it; a member on network-attached storage with high fsync latency causes leader elections and cluster-wide latency spikes that look like network problems and are not
  • Adding members increases availability but reduces write throughput, because each write must reach a larger quorum; you run three or five members for fault tolerance, and increasing capacity means faster hardware rather than more nodes
  • There is no sharding and no multi-tenancy, so isolating workloads means running separate clusters, each with its own quorum, certificates, backup schedule and upgrade path, and that operational multiplication is often unexpected
  • Running it yourself is a real job: periodic compaction and defragmentation, snapshot backups you have actually rehearsed restoring, and rotation of both peer and client TLS certificates, none of which happens automatically outside a managed Kubernetes service
  • Losing quorum is not self-healing; recovering a cluster that has lost a majority means restoring from a snapshot and accepting that everything written since that snapshot is gone, which makes backup frequency a data-loss budget decision rather than a routine setting

How much do Amazon S3 and etcd cost?

etcd 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.

etcd

Free

No published plan breakdown. See the etcd review.

Which should you pick?

Choose Amazon S3 if

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

Choose etcd if

  • You need raft consensus.
  • You want to start without paying.
  • You also want linearizable reads.

Questions people ask

Is Amazon S3 or etcd better?
It depends on the job. Amazon S3 fits data lake storage for analytics; etcd fits storing Kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doing. Amazon S3 starts at On request and etcd at Free.
Which is cheaper, Amazon S3 or etcd?
etcd has a free tier; the other does not. Paid plans start at On request for Amazon S3 and Free for etcd.
Does Amazon S3 or etcd run on more platforms?
Both run on Web, so platform support will not decide this one for you.
Can I use etcd for free?
Yes. etcd 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 etcd is typically brought in for.
What can Amazon S3 do that etcd cannot?
Amazon S3 covers Object storage in buckets, Multiple storage classes including Glacier, S3 Intelligent-Tiering, Versioning. etcd covers Raft consensus, Linearizable reads, Transactions, Leases.

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
etcd: Can I use etcd as an application database?

No. It is designed for metadata and coordination, with a recommended maximum store size of around 8 GB, no sharding and a write path deliberately optimised for durability rather than throughput. Application data belongs in a database built for it.

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
etcd: How many members should a cluster have?

Three for most cases, five where you need to survive two simultaneous failures. Always an odd number, because an even-sized cluster gains no additional fault tolerance while making quorum harder to reach.

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
etcd: What happens when the store fills up?

The cluster raises a NOSPACE alarm and stops accepting writes, becoming effectively read-only. Recovery requires compacting old revisions, defragmenting each member and then explicitly disarming the alarm, all done by an operator.

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
etcd: Why is my etcd cluster slow or unstable?

Almost always disk latency. Because every write is fsynced before acknowledgement, slow or shared storage causes heartbeat timeouts, leader elections and cascading latency. Local SSDs with low fsync latency are effectively a requirement.

etcd: How does it compare with Consul or ZooKeeper?

All three provide consensus-backed coordination. etcd has the simplest data model and the Kubernetes ecosystem behind it; Consul bundles service discovery, health checking and a service mesh; ZooKeeper is older, JVM-based and still common under Kafka and Hadoop-era systems.

Share

Related pages

Other head to heads