DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Because the DevOps movement has redefined engineering responsibilities, SREs now have to become stewards of observability strategy.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Related

  • Performance and Scalability Analysis of Redis and Memcached
  • Build a Data Analytics Platform With Flask, SQL, and Redis
  • How To Manage Redis Cluster Topology With Command Line
  • Caching RESTful API Requests With Heroku Data for Redis

Trending

  • Analyzing Techniques to Provision Access via IDAM Models During Emergency and Disaster Response
  • How to Merge HTML Documents in Java
  • What’s Got Me Interested in OpenTelemetry—And Pursuing Certification
  • Monoliths, REST, and Spring Boot Sidecars: A Real Modernization Playbook
  1. DZone
  2. Data Engineering
  3. Data
  4. Redis vs. Memcached

Redis vs. Memcached

In this article, we will talk about Redis (REmote DIctionary Server). Redis is an open source, in-memory, key value store. It is also referred to as a dictionary server as the key values are not only strings, but also hashes, sets, lists, and sorted sets. Read on for more details.

By 
Siva Prasad Rao Janapati user avatar
Siva Prasad Rao Janapati
·
Mar. 23, 16 · Analysis
Likes (9)
Comment
Save
Tweet
Share
16.2K Views

Join the DZone community and get the full member experience.

Join For Free

RedisIn this article, we will talk about Redis (REmote DIctionary Server). Redis is an open source, in-memory, key value store. It is also referred to as a dictionary server as the key values are not only strings, but also hashes, sets, lists, and sorted sets.

Redis looks similar to Memcached but there are some differences between them.          

Feature

Redis

Memcached

In Memory

X

X

Replication

X

Partitioning

X

Data Structures

X

Authentication

X

X

Pub/Sub Model

X


Data Persistence

X

Virtual Memory

X

Feature Details

In Memory: Redis stores the key values in primary memory for quick access of read writes.

Replication: Redis supports for master-slave replication. The data access can be done from the slave and the writes can be performed from the master. The replication provides scalability and availability. As any one of the slaves gets failed, the other slave provides data access.

Data Structures: Redis stores not only strings but also lists, sets, hashes and sorted sets.

Virtual memory: Redis uses RAM for in memory storage. But, during the shortage of RAM, it uses virtual memory to keep the data.

Pub/Sub Model: Redis creates Publish and Subscribe channels where the Redis clients can subscribe to any channel to consume the data and any subscribed client to a channel can publish the data.

Data Persistence: Redis persist the in-memory data to a file system on regular intervals. During the failure of Redis node, the data can be restored from Redis Data file.

Redis has a rich set of SDK support. You can find the list of client libraries here (http://redis.io/clients).

There are lots of sites with high traffic that are already using Redis. Some of them are given below.

  • Stack Overflow
  • Craigslist
  • Rackspace
  • Plugin support for Magento
  • GitHub

The growth of Redis over the years is increasing. The stats for Redis and Memcached from DB-Engines is given below. This is how DB-Engines calculates the trend.

Redis Growth

Redis (company) Memcached Data (computing)

Published at DZone with permission of Siva Prasad Rao Janapati, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Performance and Scalability Analysis of Redis and Memcached
  • Build a Data Analytics Platform With Flask, SQL, and Redis
  • How To Manage Redis Cluster Topology With Command Line
  • Caching RESTful API Requests With Heroku Data for Redis

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!