guava vs Memcached vs Redis





What is guava?

The Guava project contains several of Google's core libraries that we rely on in our Java-based projects: collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, and so forth.

What is Memcached?

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.

What is Redis?

Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose guava?
Why do developers choose Memcached?
Why do developers choose Redis?
What are the cons of using guava?
What are the cons of using Memcached?
What are the cons of using Redis?
    Be the first to leave a con
      Be the first to leave a con
      What companies use guava?
      What companies use Memcached?
      What companies use Redis?
      What are some alternatives to guava, Memcached, and Redis?
      A library for composing asynchronous and event-based programs by using observable sequences for the Java VM.
      Java 8
      It is a revolutionary release of the world’s no 1 development platform. It includes a huge upgrade to the Java programming model and a coordinated evolution of the JVM, Java language, and libraries. Java 8 includes features for productivity, ease of use, improved polyglot programming, security and improved performance.
      It is a modern server-side Java template engine for both web and standalone environments. It is aimed at creating elegant web code while adding powerful features and retaining prototyping abilities.
      It is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings. It eliminates almost all of the JDBC code and manual setting of parameters and retrieval of results. It can use simple XML or Annotations for configuration and map primitives, Map interfaces and Java POJOs (Plain Old Java Objects) to database records.
      It is a suite of data-processing tools for Java (and the JVM platform), including the flagship streaming JSON parser / generator library, matching data-binding library (POJOs to and from JSON) and additional data format modules to process data encoded in Avro, BSON, CBOR, CSV, Smile, (Java) Properties, Protobuf, XML or YAML; and even the large set of data format modules to support data types of widely used data types such as Guava, Joda.
      See all alternatives
      What tools integrate with guava?
      What tools integrate with Memcached?
      What tools integrate with Redis?
        No integrations found
          No integrations found
            No integrations found
            Decisions about guava, Memcached, and Redis
            No stack decisions found
            Interest over time
            Reviews of guava, Memcached, and Redis
            Review ofRedisRedis

            Redis is a good caching tool for a cluster, but our application had performance issues while using Aws Elasticache Redis since some page had 3000 cache hits per a page load and Redis just couldn't quickly process them all in once + latency and object deseialization time - page load took 8-9 seconds. We create a custom hybrid caching based on Redis and EhCache which worked great for our goals. Check it out on github, it's called HybriCache -

            How developers use guava, Memcached, and Redis
            Avatar of Cloudcraft
            Cloudcraft uses RedisRedis

            Redis is used for storing all ephemeral (that's data you don't necessarily want to store permanently) user data, such as mapping of session IDs (stored in cookies) to current session variables at The many datastructures supported by Redis also makes it an excellent caching and realtime statistics layer. It doesn't hurt that the author, Antirez, is the nicest guy ever! These days, I would be really hard pressed to find any situation where I would pick something like Memcached over Redis.

            Avatar of Trello
            Trello uses RedisRedis

            Trello uses Redis for ephemeral data that needs to be shared between server processes but not persisted to disk. Things like the activity level of a session or a temporary OpenID key are stored in Redis, and the application is built to recover gracefully if any of these (or all of them) are lost. We run with allkeys-lru enabled and about five times as much space as its actual working set needs, so Redis automatically discards data that hasn’t been accessed lately, and reconstructs it when necessary.

            Avatar of Stack Exchange
            Stack Exchange uses RedisRedis

            The UI has message inbox that is sent a message when you get a new badge, receive a message, significant event, etc. Done using WebSockets and is powered by redis. Redis has 2 slaves, SQL has 2 replicas, tag engine has 3 nodes, elastic has 3 nodes - any other service has high availability as well (and exists in both data centers).

            Avatar of Brandon Adams
            Brandon Adams uses RedisRedis

            Redis makes certain operations very easy. When I need a high-availability store, I typically look elsewhere, but for rapid development with the ability to land on your feet in prod, Redis is great. The available data types make it easy to build non-trivial indexes that would require complex queries in postgres.

            Avatar of Kent Steiner
            Kent Steiner uses RedisRedis

            I use Redis for cacheing, data storage, mining and augmentation, proprietary distributed event system for disparate apps and services to talk to each other, and more. Redis has some very useful native data types for tracking, slicing and dicing information.

            Avatar of Reactor Digital
            Reactor Digital uses MemcachedMemcached

            As part of the cacheing system within Drupal.

            Memcached mainly took care of creating and rebuilding the REST API cache once changes had been made within Drupal.

            Avatar of Casey Smith
            Casey Smith uses MemcachedMemcached

            Distributed cache exposed through Google App Engine APIs; use to stage fresh data (incoming and recently processed) for faster access in data processing pipeline.

            Avatar of The Independent
            The Independent uses MemcachedMemcached

            Memcache caches database results and articles, reducing overall DB load and allowing seamless DB maintenance during quiet periods.

            Avatar of eXon Technologies
            eXon Technologies uses MemcachedMemcached

            Used to cache most used files for our clients. Connected with CloudFlare Railgun Optimizer.

            Avatar of ScholaNoctis
            ScholaNoctis uses MemcachedMemcached

            Memcached is used as a simple page cache across the whole application.

            How much does guava cost?
            How much does Memcached cost?
            How much does Redis cost?
            Pricing unavailable
            Pricing unavailable
            Pricing unavailable
            News about guava
            More news