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

Azure Cosmos DB

578
1K
+ 1
130
Redis

58.3K
44.9K
+ 1
3.9K
Add tool

Azure Cosmos DB vs Redis: What are the differences?

Azure Cosmos DB and Redis are both widely used distributed databases. Let's discuss the key differences between Azure Cosmos DB and Redis:

  1. Database Model: Azure Cosmos DB is a document-oriented database that provides a schema-less data model. It allows you to store and query JSON documents natively. On the other hand, Redis is an in-memory data structure store that supports various data structures such as strings, lists, sets, hashes, and more. It is primarily used as a key-value store.

  2. Scalability and Global Distribution: Azure Cosmos DB offers global distribution and scalable performance out of the box. It ensures low latency access to data from any region around the world and allows you to scale both read and write throughput independently. Redis also provides scalability, but it requires additional configuration and setup to achieve global distribution.

  3. Data Persistence: Azure Cosmos DB offers multiple levels of data consistency, including strong consistency, bounded staleness, session consistency, and eventual consistency. It persists data durably across multiple Azure regions. In contrast, Redis is an in-memory database by default, and you need to configure it for persistence by periodically saving the data to disk or using replication.

  4. Querying Capabilities: Azure Cosmos DB provides a SQL-like query language called SQL API, which allows complex queries on JSON documents. It also supports other APIs like Gremlin (graph database), MongoDB, Cassandra, and Azure Table Storage API. Redis, on the other hand, primarily supports simple key-based operations and does not have built-in support for complex querying.

  5. TTL (Time-to-Live) and Expiry: Azure Cosmos DB allows you to set a time-to-live (TTL) for individual documents, so they automatically expire and get deleted after a specific duration. Redis also supports TTL, but it is more commonly used for setting expiry on individual keys rather than entire documents.

  6. Data Replication and High Availability: Azure Cosmos DB provides automatic multi-region replication to ensure high availability and fault tolerance. It replicates data across multiple regions and provides automatic failover in case of region-wide failures. Redis supports replication as well but requires manual configuration and set up for high availability scenarios.

In summary, choose Azure Cosmos DB if you need a globally distributed, document-oriented database with strong querying capabilities and automatic replication. Choose Redis if you need an in-memory data store with support for various data structures and manual replication setup.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Azure Cosmos DB
Pros of Redis
  • 28
    Best-of-breed NoSQL features
  • 22
    High scalability
  • 15
    Globally distributed
  • 14
    Automatic indexing over flexible json data model
  • 10
    Tunable consistency
  • 10
    Always on with 99.99% availability sla
  • 7
    Javascript language integrated transactions and queries
  • 6
    Predictable performance
  • 5
    High performance
  • 5
    Analytics Store
  • 2
    Rapid Development
  • 2
    No Sql
  • 2
    Auto Indexing
  • 2
    Ease of use
  • 886
    Performance
  • 542
    Super fast
  • 513
    Ease of use
  • 444
    In-memory cache
  • 324
    Advanced key-value cache
  • 194
    Open source
  • 182
    Easy to deploy
  • 164
    Stable
  • 155
    Free
  • 121
    Fast
  • 42
    High-Performance
  • 40
    High Availability
  • 35
    Data Structures
  • 32
    Very Scalable
  • 24
    Replication
  • 22
    Great community
  • 22
    Pub/Sub
  • 19
    "NoSQL" key-value data store
  • 16
    Hashes
  • 13
    Sets
  • 11
    Sorted Sets
  • 10
    NoSQL
  • 10
    Lists
  • 9
    Async replication
  • 9
    BSD licensed
  • 8
    Bitmaps
  • 8
    Integrates super easy with Sidekiq for Rails background
  • 7
    Keys with a limited time-to-live
  • 7
    Open Source
  • 6
    Lua scripting
  • 6
    Strings
  • 5
    Awesomeness for Free
  • 5
    Hyperloglogs
  • 4
    Transactions
  • 4
    Outstanding performance
  • 4
    Runs server side LUA
  • 4
    LRU eviction of keys
  • 4
    Feature Rich
  • 4
    Written in ANSI C
  • 4
    Networked
  • 3
    Data structure server
  • 3
    Performance & ease of use
  • 2
    Dont save data if no subscribers are found
  • 2
    Automatic failover
  • 2
    Easy to use
  • 2
    Temporarily kept on disk
  • 2
    Scalable
  • 2
    Existing Laravel Integration
  • 2
    Channels concept
  • 2
    Object [key/value] size each 500 MB
  • 2
    Simple

Sign up to add or upvote prosMake informed product decisions

Cons of Azure Cosmos DB
Cons of Redis
  • 18
    Pricing
  • 4
    Poor No SQL query support
  • 15
    Cannot query objects directly
  • 3
    No secondary indexes for non-numeric data types
  • 1
    No WAL

Sign up to add or upvote consMake informed product decisions

What is Azure Cosmos DB?

Azure DocumentDB is a fully managed NoSQL database service built for fast and predictable performance, high availability, elastic scaling, global distribution, and ease of development.

What is Redis?

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.

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

Jobs that mention Azure Cosmos DB and Redis as a desired skillset
LaunchDarkly
Oakland, California, United States
What companies use Azure Cosmos DB?
What companies use Redis?
See which teams inside your own company are using Azure Cosmos DB or Redis.
Sign up for StackShare EnterpriseLearn More

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

What tools integrate with Azure Cosmos DB?
What tools integrate with Redis?

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

Blog Posts

Nov 20 2019 at 3:38AM

OneSignal

PostgreSQLRedisRuby+8
9
4654
Jun 6 2019 at 5:11PM

AppSignal

RedisRubyKafka+9
15
1650
GitHubDockerReact+17
40
36336
What are some alternatives to Azure Cosmos DB and Redis?
Azure SQL Database
It is the intelligent, scalable, cloud database service that provides the broadest SQL Server engine compatibility and up to a 212% return on investment. It is a database service that can quickly and efficiently scale to meet demand, is automatically highly available, and supports a variety of third party software.
MongoDB Atlas
MongoDB Atlas is a global cloud database service built and run by the team behind MongoDB. Enjoy the flexibility and scalability of a document database, with the ease and automation of a fully managed service on your preferred cloud.
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.
Neo4j
Neo4j stores data in nodes connected by directed, typed relationships with properties on both, also known as a Property Graph. It is a high performance graph store with all the features expected of a mature and robust database, like a friendly query language and ACID transactions.
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.
See all alternatives