Software Alternatives, Accelerators & Startups

Google Cloud Spanner VS DynamoDB

Compare Google Cloud Spanner VS DynamoDB and see what are their differences

Google Cloud Spanner logo Google Cloud Spanner

Google Cloud Spanner is a horizontally scalable, globally consistent, relational database service.

DynamoDB logo DynamoDB

Amazon DynamoDB is a fast and flexible NoSQL database service for all applications that need consistent, single-digit millisecond latency at any scale. It is a fully managed cloud database and supports both document and key-value store models.
  • Google Cloud Spanner Landing page
    Landing page //
    2023-09-17
  • DynamoDB Landing page
    Landing page //
    2023-03-18

Google Cloud Spanner features and specs

  • Scalability
    Google Cloud Spanner can automatically scale horizontally, providing robust support for large-scale applications. It can handle petabytes of data across millions of instances with ease.
  • Global Distribution
    Spanner enables globally distributed databases with strong consistency and low-latency reads, allowing applications to deliver seamless performance across the globe.
  • Strong Consistency
    Unlike many other distributed databases, Cloud Spanner offers strong transactional consistency, using Google's TrueTime API to ensure precise timestamp ordering that supports ACID transactions.
  • Fully Managed
    Cloud Spanner is a fully managed service, which means Google handles maintenance tasks such as updates, scaling, and provisioning, reducing the operational overhead for users.
  • SQL Support
    It provides support for SQL queries, making it easier for developers and teams familiar with SQL to integrate and manage their data workloads without needing to learn new paradigms.
  • High Availability
    Cloud Spanner is designed for high availability, with built-in redundancy and failover capabilities that ensure continuous operation even in the face of regional outages.

Possible disadvantages of Google Cloud Spanner

  • Cost
    Google Cloud Spanner can be expensive compared to other database solutions, especially for smaller applications or startups with limited budgets.
  • Limited Ecosystem
    While growing, Spanner's ecosystem is not as mature as more established relational or NoSQL databases, which might lead to fewer third-party tools and integrations.
  • Complexity in Migration
    Migrating existing applications and data to Cloud Spanner can be complex and time-consuming, particularly for those coming from non-relational database systems.
  • Limited NoSQL Features
    For applications that require specific NoSQL features, such as unstructured data handling and schema flexibility, Cloud Spanner may not be the best fit compared to other NoSQL databases.
  • Regional Lock-in
    Although it offers global distribution, data residency and compliance requirements might limit some organizations to specific regions, which can affect the strategic deployment of an application.

DynamoDB features and specs

  • Scalability
    DynamoDB automatically scales up and down to handle your application's needs, with no intervention required. This allows for easy handling of traffic spikes and growth over time.
  • Performance
    With its fast, predictable performance at any scale, DynamoDB ensures low-latency responses, even with large volumes of data.
  • Fully Managed
    As a fully managed service, DynamoDB handles hardware provisioning, setup, configuration, replication, software patching, and backups, letting you focus on your application.
  • Flexible Data Model
    DynamoDB supports both document and key-value store models, providing flexibility in how you structure your data.
  • Security
    DynamoDB integrates with AWS Identity and Access Management (IAM) to provide fine-grained access control and encrypts data at rest and in transit.
  • Global Tables
    You can create multi-region, fully replicated tables for high availability and globally distributed apps with low latency reads and writes.
  • Event-Driven Architecture
    DynamoDB integrates with AWS Lambda for automatic triggering and the creation of event-driven architectures.

Possible disadvantages of DynamoDB

  • Pricing Complexity
    DynamoDB's pricing model, which charges based on read and write capacity units, storage, and data transfer, can be complex and difficult to predict.
  • Limited Query Capabilities
    DynamoDB does not support complex queries as well as traditional SQL databases. Querying capabilities are limited primarily to primary key attributes.
  • Secondary Indexes
    While DynamoDB supports secondary indexes, their use can be limited and complex to manage effectively compared to relational databases.
  • Consistency
    DynamoDB offers eventual consistency by default. While strongly consistent reads are available, they can be more expensive and slower.
  • Data Size Limitations
    Each item in a DynamoDB table must be 400KB or less, limiting the amount of data you can store in a single item.
  • Vendor Lock-In
    Using DynamoDB heavily ties your application to AWS, which can be a downside if you want to maintain flexibility in your cloud infrastructure choices.

Google Cloud Spanner videos

Build with Google Cloud Spanner

DynamoDB videos

#13 - Amazon DynamoDB Basics In Under 5 Minutes [Tutorial For Beginners]

More videos:

  • Review - AWS re:Invent 2018: Amazon DynamoDB Deep Dive: Advanced Design Patterns for DynamoDB (DAT401)
  • Review - What is Amazon DynamoDB?

Category Popularity

0-100% (relative to Google Cloud Spanner and DynamoDB)
Databases
22 22%
78% 78
Relational Databases
100 100%
0% 0
NoSQL Databases
26 26%
74% 74
Cloud Computing
0 0%
100% 100

User comments

Share your experience with using Google Cloud Spanner and DynamoDB. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare Google Cloud Spanner and DynamoDB

Google Cloud Spanner Reviews

We have no reviews of Google Cloud Spanner yet.
Be the first one to post

DynamoDB Reviews

Top 5 Dynobase alternatives you should know about - March 2025 Review
Dynomate offers a comprehensive solution with native AWS SSO support, advanced multi-tab functionality, and Git-based collaboration features. NoSQL Workbench is a valuable free tool from AWS, excellent for designing and visualizing data models. The JetBrains DynamoDB Plugin brings DynamoDB into your IDE with helpful autocomplete and query-saving features.
Source: www.dynomate.io
9 Best MongoDB alternatives in 2019
Amazon DynamoDB is a nonrelational database. This database system provides consistent latency and offers built-in security, and in-memory caching. DynamoDB is a serverless database which scales automatically and backs up your data for protection
Source: www.guru99.com

Social recommendations and mentions

Based on our record, DynamoDB should be more popular than Google Cloud Spanner. It has been mentiond 120 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Google Cloud Spanner mentions (17)

  • Golden Ticket To Explore Google Cloud
    Multiregion is possible in Google Cloud using Cloud Spanner, which allows you to replicate the database not only in multiple zones but also in multiple regions as defined in the instance configuration. The replicas allow you to read data with low latency from multiple locations that are close to or within the region in the configuration. - Source: dev.to / almost 2 years ago
  • /u/ryuuthecat wonders how a feature of google maps works. Engineer who programmed the feature responds with the answer
    Basically everything I touch is in-house, but a majority of it is available publicly. For instance: https://cloud.google.com/spanner/. Source: over 2 years ago
  • How Do Companies (Like Evernote) Handle So Many Notes?
    An application that needs to handle a lot of data can use a distributed database like Cloud Spanner. Unlimited scale and you don't have to split your database into multiple tables. Source: over 2 years ago
  • One of my favorite topics in DE is CAP Theorem. Has anyone managed to accomplish all 3 at once yet or is it truly impossible like the theorem states.
    Look at the architecture and performance of Google's Cloud Spanner, a CP system with 99.999% availability... https://cloud.google.com/spanner. Source: over 2 years ago
  • Vaultree and AlloyDB: the world's first Fully Homomorphic and Searchable Cloud Encryption Solution
    In my opinion, Google has built some fantastic database services like Bigtable and Spanner, which literally changed the industry for good, and I am eager to see how they will build upon this new service. With AlloyDB's disaggregated architecture, the dystopian world where I only pay for SQL databases per query and the stored data on GCP seems closer than ever. - Source: dev.to / over 2 years ago
View more

DynamoDB mentions (120)

View more

What are some alternatives?

When comparing Google Cloud Spanner and DynamoDB, you can also consider the following products

PostgreSQL - PostgreSQL is a powerful, open source object-relational database system.

AWS Lambda - Automatic, event-driven compute service

MySQL - The world's most popular open source database

MongoDB - MongoDB (from "humongous") is a scalable, high-performance NoSQL database.

Oracle DBaaS - See how Oracle Database 12c enables businesses to plug into the cloud and power the real-time enterprise.

Redis - Redis is an open source in-memory data structure project implementing a distributed, in-memory key-value database with optional durability.