Skip to content

AWS Technologies Blog

Menu
  • Home
  • KB
  • Services
  • Resources
  • Posts
  • Find
    • Categories
    • Tags
  • About
Menu

Redis and Memcached

Posted on April 5, 2025 by wpadmin

Redis vs Memcached: Feature Comparison

FeatureRedisMemcached
Data TypesSupports strings, hashes, lists, sets, sorted sets, streams, bitmaps, hyperloglogsStrings only
PersistenceYes (RDB snapshots, AOF)No
ReplicationYes (with automatic failover)No
High AvailabilityYes (Multi-AZ, automatic failover)No
Cluster ModeYes (native support)Partial (manual configuration)
Pub/SubYesNo
TTL (Expiration)Yes, per keyYes, per key
Memory ManagementConfigurable eviction policiesSimple LRU or TTL-based
SecuritySupports authentication and encryption (TLS)Basic
Use as Persistent StoreYesNo

When to Use Redis

Redis is a good fit when you need:

  • Advanced data structures (e.g., lists, sets, sorted sets)
  • Pub/Sub messaging
  • Persistence or snapshotting
  • High availability or multi-AZ support
  • Clustering and scalability
  • Features like atomic operations, transactions, or stream processing

Typical use cases:

  • Session storage with failover
  • Leaderboards and scoring systems
  • Rate limiting and counters
  • Real-time analytics dashboards
  • Messaging queues or pub/sub systems
  • Caching with fail-safe data recovery

When to Use Memcached

Memcached is a good fit when you need:

  • A simple, high-speed, in-memory key-value cache
  • Low overhead and high throughput
  • Stateless, short-lived data with no need for recovery
  • Minimal operational complexity

Typical use cases:

  • Page and object caching for web apps
  • Simple session storage (where persistence isn’t needed)
  • Fronting databases or APIs with low-latency access
  • High-throughput caching layers (e.g., for microservices)

Let me know if you’d like help choosing between them for a specific architecture or workload.

  • Product List
  • Documentation

billing ciem containers cost cspm ebs ec2 ecs edge eks elb event Firewall fsx hybrid iam lambda NACL outpostd policies pop princing rds route53 s3 security serverless services SG siem storage vpc

  • Amazon FSx
  • aws
  • aws notes
  • billing
  • cloud
  • compute
  • containers
  • core
  • databases
  • development
  • ebs
  • ec2
  • ecs
  • edge
  • efs
  • eks
  • hybrid
  • iam
  • lambda
  • network
  • outposts
  • pricing
  • rds
  • route53
  • s3
  • security
  • serverless
  • services
  • storage
  • support
  • vpc
©2025 AWS Technologies Blog | Built using WordPress and Responsive Blogily theme by Superb