StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Application & Data
  3. Databases
  4. Databases
  5. Memcached vs etcd

Memcached vs etcd

OverviewComparisonAlternatives

Overview

Memcached
Memcached
Stacks7.9K
Followers5.7K
Votes473
GitHub Stars14.0K
Forks3.3K
etcd
etcd
Stacks308
Followers412
Votes24

Memcached vs etcd: What are the differences?

Introduction

In this article, we will discuss the key differences between Memcached and etcd. Memcached is an in-memory caching system, while etcd is a distributed key-value store. Both have their own unique features and use cases. Let's explore their differences in detail.

  1. Data Persistence: Memcached does not support data persistence, which means that if the server restarts or crashes, all the cached data will be lost. On the other hand, etcd provides built-in data persistence, ensuring that the data remains intact even after a restart or failure.

  2. Consistency and Consensus: Memcached does not provide strong consistency guarantees. It uses a simple hashing algorithm to distribute data among multiple servers, but there is no consensus mechanism. In contrast, etcd uses the Raft consensus algorithm to achieve strong consistency across the distributed key-value store.

  3. Distributed Transactions: Memcached does not support distributed transactions, making it unsuitable for scenarios that require atomicity across multiple operations. Etcd, on the other hand, provides support for distributed transactions, allowing multiple operations to be grouped together and executed atomically.

  4. Watch and Notification Mechanism: Memcached does not provide a built-in mechanism for clients to watch changes to the data. In contrast, etcd offers a watch feature that allows clients to be notified of changes to the stored data, enabling reactive programming and event-driven architectures.

  5. Advanced Querying and Indexing: Memcached is a simple key-value store and does not provide advanced querying capabilities or indexing support. Etcd, on the other hand, allows the use of range queries, prefixes, and even user-defined indexes, making it more suitable for scenarios that require complex querying operations.

  6. Configuration Management: While both Memcached and etcd can be used for configuration management, etcd provides additional features such as distributed locks and leader election, making it more suitable for managing the configuration of distributed systems.

In summary, Memcached is a lightweight and fast in-memory caching system without data persistence and advanced querying capabilities, while etcd is a distributed key-value store with data persistence, strong consistency, support for distributed transactions, advanced querying capabilities, and additional features for configuration management.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Detailed Comparison

Memcached
Memcached
etcd
etcd

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines. It’s open-source and available on GitHub. etcd gracefully handles master elections during network partitions and will tolerate machine failure, including the master.

Statistics
GitHub Stars
14.0K
GitHub Stars
-
GitHub Forks
3.3K
GitHub Forks
-
Stacks
7.9K
Stacks
308
Followers
5.7K
Followers
412
Votes
473
Votes
24
Pros & Cons
Pros
  • 139
    Fast object cache
  • 129
    High-performance
  • 91
    Stable
  • 65
    Mature
  • 33
    Distributed caching system
Cons
  • 2
    Only caches simple types
Pros
  • 11
    Service discovery
  • 6
    Fault tolerant key value store
  • 2
    Secure
  • 2
    Bundled with coreos
  • 1
    Privilege Access Management

What are some alternatives to Memcached, etcd?

MongoDB

MongoDB

MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.

MySQL

MySQL

The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.

PostgreSQL

PostgreSQL

PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions.

Microsoft SQL Server

Microsoft SQL Server

Microsoft® SQL Server is a database management and analysis system for e-commerce, line-of-business, and data warehousing solutions.

SQLite

SQLite

SQLite is an embedded SQL database engine. Unlike most other SQL databases, SQLite does not have a separate server process. SQLite reads and writes directly to ordinary disk files. A complete SQL database with multiple tables, indices, triggers, and views, is contained in a single disk file.

Cassandra

Cassandra

Partitioning means that Cassandra can distribute your data across multiple machines in an application-transparent matter. Cassandra will automatically repartition as machines are added and removed from the cluster. Row store means that like relational databases, Cassandra organizes data by rows and columns. The Cassandra Query Language (CQL) is a close relative of SQL.

MariaDB

MariaDB

Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry. MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

RethinkDB

RethinkDB

RethinkDB is built to store JSON documents, and scale to multiple machines with very little effort. It has a pleasant query language that supports really useful queries like table joins and group by, and is easy to setup and learn.

Consul

Consul

Consul is a tool for service discovery and configuration. Consul is distributed, highly available, and extremely scalable.

ArangoDB

ArangoDB

A distributed free and open-source database with a flexible data model for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.

Related Comparisons

GitHub
Bitbucket

Bitbucket vs GitHub vs GitLab

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot