Need advice about which tool to choose?Ask the StackShare community!
Amazon DynamoDB vs Amazon Redshift: What are the differences?
Introduction:
Amazon DynamoDB and Amazon Redshift are both highly scalable and managed services offered by Amazon Web Services (AWS) for different data storage and processing needs. However, they have key differences that make them suitable for specific use cases.
1. Scalability:
Amazon DynamoDB is a NoSQL database that offers automatic and seamless scalability. It can handle massive amounts of data and adapt to changing workloads by automatically increasing or decreasing the provisioned throughput capacity. On the other hand, Amazon Redshift is a fully managed data warehousing service that allows for petabyte-scale data storage and analysis. It offers columnar storage and parallel query execution, enabling high scalability for analytical workloads.
2. Data Structure and Querying:
DynamoDB is a key-value store that organizes data in tables with primary keys. It allows for flexible schema design and supports simple key-based operations as well as complex queries with secondary indexes. Redshift, on the other hand, uses a columnar data store optimized for OLAP workloads. It supports SQL-based querying and provides advanced analytics capabilities such as window functions, joins, and aggregations.
3. Performance and Latency:
DynamoDB is designed for low-latency and high-throughput applications. It offers single-digit millisecond latency for both read and write operations, making it suitable for real-time applications. Redshift, on the other hand, is optimized for complex analytical queries and offers high query performance for large data sets. However, it may have higher latency compared to DynamoDB due to its distributed nature and columnar storage format.
4. Data Consistency:
DynamoDB offers two consistency models: eventual consistency and strong consistency. Eventual consistency allows for faster read operations with the possibility of reading stale data, while strong consistency ensures that all reads reflect the latest write. Redshift, on the other hand, offers eventual consistency as it replicates data across multiple nodes but does not provide built-in strong consistency guarantees.
5. Data Storage and Cost:
DynamoDB charges for the provisioned throughput capacity and actual storage consumed. It is suitable for scenarios where the workload is unpredictable and requires granular control over performance and cost. Redshift charges based on the amount of data stored and the number of query slots required. It is ideal for analytical workloads with predictable data storage requirements.
6. Data Lifespan and Retention:
DynamoDB is designed for storing and accessing current and frequently accessed data. It does not provide built-in data retention policies or automatic data deletion. Redshift, on the other hand, offers data retention policies and automated data deletion. It allows for loading historical data, running analytics, and maintaining data for longer periods.
In summary, Amazon DynamoDB and Amazon Redshift differ in terms of scalability, data structure and querying, performance and latency, data consistency, data storage and cost, as well as data lifespan and retention. These differences make them suitable for different use cases, whether it is real-time applications with low-latency requirements or analytical workloads with high scalability and advanced querying capabilities.
We need to perform ETL from several databases into a data warehouse or data lake. We want to
- keep raw and transformed data available to users to draft their own queries efficiently
- give users the ability to give custom permissions and SSO
- move between open-source on-premises development and cloud-based production environments
We want to use inexpensive Amazon EC2 instances only on medium-sized data set 16GB to 32GB feeding into Tableau Server or PowerBI for reporting and data analysis purposes.
You could also use AWS Lambda and use Cloudwatch event schedule if you know when the function should be triggered. The benefit is that you could use any language and use the respective database client.
But if you orchestrate ETLs then it makes sense to use Apache Airflow. This requires Python knowledge.
Though we have always built something custom, Apache airflow (https://airflow.apache.org/) stood out as a key contender/alternative when it comes to open sources. On the commercial offering, Amazon Redshift combined with Amazon Kinesis (for complex manipulations) is great for BI, though Redshift as such is expensive.
You may want to look into a Data Virtualization product called Conduit. It connects to disparate data sources in AWS, on prem, Azure, GCP, and exposes them as a single unified Spark SQL view to PowerBI (direct query) or Tableau. Allows auto query and caching policies to enhance query speeds and experience. Has a GPU query engine and optimized Spark for fallback. Can be deployed on your AWS VM or on prem, scales up and out. Sounds like the ideal solution to your needs.
Pros of Amazon DynamoDB
- Predictable performance and cost62
- Scalable56
- Native JSON Support35
- AWS Free Tier21
- Fast7
- No sql3
- To store data3
- Serverless2
- No Stored procedures is GOOD2
- ORM with DynamoDBMapper1
- Elastic Scalability using on-demand mode1
- Elastic Scalability using autoscaling1
- DynamoDB Stream1
Pros of Amazon Redshift
- Data Warehousing41
- Scalable27
- SQL17
- Backed by Amazon14
- Encryption5
- Cheap and reliable1
- Isolation1
- Best Cloud DW Performance1
- Fast columnar storage1
Sign up to add or upvote prosMake informed product decisions
Cons of Amazon DynamoDB
- Only sequential access for paginate data4
- Scaling1
- Document Limit Size1