Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Hibernate
Hibernate

632
434
+ 1
16
Redis
Redis

14.6K
9.8K
+ 1
3.8K
Add tool

Hibernate vs Redis: What are the differences?

What is Hibernate? Idiomatic persistence for Java and relational databases. Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.

What is Redis? An in-memory database that persists on disk. 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.

Hibernate and Redis are primarily classified as "Object Relational Mapper (ORM)" and "In-Memory Databases" tools respectively.

"Easy ORM" is the top reason why over 9 developers like Hibernate, while over 842 developers mention "Performance" as the leading cause for choosing Redis.

Redis is an open source tool with 37.4K GitHub stars and 14.4K GitHub forks. Here's a link to Redis's open source repository on GitHub.

According to the StackShare community, Redis has a broader approval, being mentioned in 3261 company stacks & 1781 developers stacks; compared to Hibernate, which is listed in 87 company stacks and 74 developer stacks.

- No public GitHub repository available -

What is Hibernate?

Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.

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.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Hibernate?
Why do developers choose Redis?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
    What companies use Hibernate?
    What companies use Redis?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Hibernate?
    What tools integrate with Redis?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Hibernate and Redis?
    MyBatis
    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.
    Spring
    A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.
    Sequelize
    Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.
    SQLAlchemy
    SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
    Doctrine 2
    Doctrine 2 sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL.
    See all alternatives
    Decisions about Hibernate and Redis
    Django
    Django
    Redis
    Redis

    I use Redis because, based on the case studies I have reviewed, it appears to be the most performant cache database for my Django projects. The ease of configuration and deployment is also a big plus.

    Using both higher level view caching as well as low-level QuerySet caching with Redis has allowed me to improve HTTP request times by an order of magnitude.

    See more
    Interest over time
    Reviews of Hibernate 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 - https://github.com/batir-akhmerov/hybricache.

    How developers use Hibernate 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 Cloudcraft.co. 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 Kang Hyeon Ku
    Kang Hyeon Ku uses HibernateHibernate

    Mybatis ๋กœ ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค๊ณ  ์กฐ๊ฑด๋ถ„ ๋ถ„๊ธฐ์‹ for ๋ฌธ์„ ์ฟผ๋ฆฌ์— ๋‹ฌ์•„ ๋”์ด์ƒ ์ฟผ๋ฆฌ๋ฅผ ์•Œ์•„ ๋ณผ ์ˆ˜ ์—†๊ฒŒ ๋˜์—ˆ์„๋•Œ ์ด๊ฒŒ ์˜๋งˆ๊ฐ€ ์žˆ๋‚˜ ์‹ถ์—ˆ๋‹ค. ๊ทธ ๋•Œ ํ•œ๋ฒˆ orm ์„ ์จ๋ณด๋ฉด ์–ด๋–จ๊นŒ ์‹ถ์–ด ์ตœ๊ทผ์— ๋ฐฐ์šฐ๊ธฐ ์‹œ์ž‘ํ•œ orm ์ด๋‹ค. ์ •๋ง ํŽธํ•˜๊ฒŒ ๊ฐœ๋ฐœ์„ ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ ์ผ์กฐํ•˜๊ณ  ์žˆ๋‹ค. ๋‹ค๋งŒ ๊ฒฐ๊ตญ์— ์ฟผ๋ฆฌ๋ฅผ ๋‚ ๋ ค ๋งตํ•‘์„ ํ•˜๋Š”๋ฐ, ์ฟผ๋ฆฌ๋ฅผ ์ž˜ ๋ชจ๋ฅด๊ฑฐ๋‚˜ ๊ทธ์— ๋Œ€ํ•œ ์ง€์‹ ์—†์ด ์“ฐ๋‹ค๊ฐ€๋Š” ๋งํ•˜๊ฒ ๊ตฌ๋‚˜ ํ•˜๋Š” ์ƒ๊ฐ์ด ๋งŽ์ด ๋“ค์—ˆ๋‹ค.

    Avatar of Analytical Informatics
    Analytical Informatics uses HibernateHibernate

    We use a Clojure-powered wrapper around Hibernate to provide an ORM access to our data store for applications, as well as offering SSO integration and HIPAA logging functionality.

    Avatar of Tongliang Liu
    Tongliang Liu uses HibernateHibernate

    Can't escape from when you're on the Java stack and deal with relational db.

    Avatar of Satoru Ishikawa
    Satoru Ishikawa uses HibernateHibernate

    Strut ใ‚„ Spring ใชใฉ Java web app flame work ใงใฎ Object Relation Mapperใจใ—ใฆ

    Avatar of icarus-dave
    icarus-dave uses HibernateHibernate

    Persistence layer for backend data; maps entities to the database.

    How much does Hibernate cost?
    How much does Redis cost?
    Pricing unavailable
    Pricing unavailable