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

Google Cloud Datastore

252
356
+ 1
12
Redis

58.5K
45K
+ 1
3.9K
Add tool

Google Cloud Datastore vs Redis: What are the differences?

Introduction Markdown is a lightweight markup language that can be used to format text in a way that is easily readable on the web. In this task, we will format the provided content as Markdown code that can be used on a website. We will also provide the key differences between Google Cloud Datastore and Redis, being specific and concise in our descriptions.

  1. Data Structure: Google Cloud Datastore is a NoSQL document database that uses a hierarchical key-value store structure for data storage. It organizes data in entities and properties, allowing for easy retrieval and querying. On the other hand, Redis is an in-memory data structure store that supports various data structures like strings, hashes, lists, sets, and sorted sets. It is designed for high performance and low-latency data storage and retrieval.

  2. Scalability: One key difference is in terms of scalability. Google Cloud Datastore is a fully managed and highly scalable database service provided by Google. It automatically scales up or down based on demand, allowing for efficient storage and retrieval of large volumes of data. Redis, on the other hand, can also be scaled horizontally by setting up a Redis cluster, but it requires more manual configuration and management.

  3. Durability and Persistence: Another difference lies in durability and persistence of data. Google Cloud Datastore provides durability by default, ensuring that data is reliably stored and protected against failures. It also supports replication and backups for additional data protection. Redis, on the other hand, is an in-memory database, which means it is not durable by default since data is stored in RAM. However, Redis provides persistence options like snapshots and append-only files, allowing data to be saved to disk for durability.

  4. Data Queries and Indexing: Google Cloud Datastore offers powerful querying capabilities with support for complex queries using its query language called GQL (Google Query Language). It also supports indexing for efficient retrieval and filtering of data. In contrast, Redis does not provide a query language like GQL. It primarily relies on key-based access patterns and simple operations like selecting elements based on key values or ranges. Redis does not have built-in support for complex querying or indexing.

  5. Data Replication and High Availability: Google Cloud Datastore ensures high availability and data replication through its fully managed infrastructure. It replicates data across multiple data centers to provide durability and fault tolerance. Redis, on the other hand, requires manual configuration for data replication and high availability. It supports master-slave replication, where data is asynchronously replicated from a master node to multiple replica nodes. Redis Sentinel can also be used for automatic failover and high availability.

  6. Data Eviction and Expiration: Another key difference is how data eviction and expiration are handled. Google Cloud Datastore does not have an automatic data eviction mechanism. It stores data as long as it is needed and allows for manual deletion or modification. Redis, on the other hand, supports data eviction policies where data can be automatically expired or evicted based on time-to-live (TTL) or maximum memory limits. Redis provides flexible eviction options like LRU (Least Recently Used), LFU (Least Frequently Used), and random eviction.

In summary, Google Cloud Datastore and Redis differ in terms of their data structure, scalability, durability and persistence, querying capabilities, data replication and high availability, and data eviction and expiration mechanisms. Each has its own strengths and considerations depending on the specific use cases and requirements.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Google Cloud Datastore
Pros of Redis
  • 7
    High scalability
  • 2
    Serverless
  • 2
    Ability to query any property
  • 1
    Pay for what you 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 Google Cloud Datastore
Cons of Redis
    Be the first to leave a con
    • 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 Google Cloud Datastore?

    Use a managed, NoSQL, schemaless database for storing non-relational data. Cloud Datastore automatically scales as you need it and supports transactions as well as robust, SQL-like queries.

    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 Google Cloud Datastore and Redis as a desired skillset
    LaunchDarkly
    Oakland, California, United States
    What companies use Google Cloud Datastore?
    What companies use Redis?
    See which teams inside your own company are using Google Cloud Datastore 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 Google Cloud Datastore?
    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
    4659
    Jun 6 2019 at 5:11PM

    AppSignal

    RedisRubyKafka+9
    15
    1654
    GitHubDockerReact+17
    40
    36531
    What are some alternatives to Google Cloud Datastore and Redis?
    Amazon DynamoDB
    With it , you can offload the administrative burden of operating and scaling a highly available distributed database cluster, while paying a low price for only what you use.
    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.
    Elasticsearch
    Elasticsearch is a distributed, RESTful search and analytics engine capable of storing data and searching it in near real time. Elasticsearch, Kibana, Beats and Logstash are the Elastic Stack (sometimes called the ELK Stack).
    Cassandra
    Partitioning means that Cassandra can distribute your data across multiple machines in an application-transparent matter. Cassandra will automatically repartition as machines are added and removed from the cluster. Row store means that like relational databases, Cassandra organizes data by rows and columns. The Cassandra Query Language (CQL) is a close relative of SQL.
    Firebase
    Firebase is a cloud service designed to power real-time, collaborative applications. Simply add the Firebase library to your application to gain access to a shared data structure; any changes you make to that data are automatically synchronized with the Firebase cloud and with other clients within milliseconds.
    See all alternatives