In the modern world today, Big Data and Data Analytics are some of the most popular on-demand technologies in use by various companies. The concept of Data Warehousing and Data Analytics seemed like a new concept back in the past but today, they are some of the most important tools that are needed to cater to millions of customers. One of the most famous and notable Data Warehouses is AWS Redshift.

Data Warehousing is the process of storing and analyzing data from multiple sources to provide meaningful business insights. It involves transforming the data from multiple sources into a common format for both storage and analysis. In general, this process is known as ETL or Extract, Load, and Transform. Data Warehouses like Amazon Redshift leverage this process to cater to their customers.

This article will give you a comprehensive guide to Amazon Redshift and its features. It will also explain its pricing, workflow, and some of its advantages and disadvantages along with the optimal time you can use it in your organization. Read along to find out how you can use AWS Redshift for your organization.

What is Amazon Redshift Data Warehouse?

Amazon Redshift - Redshift Logo
Image Source

Amazon Redshift is a completely managed large-scale data warehouse offered as a cloud service by Amazon. Completely managed in this context means that the end-user is spared of all activities related to hosting, maintaining, and ensuring the reliability of an always running data warehouse. It offers a Postgres compatible querying layer and is compatible with most SQL-based tools and commonly used data intelligence applications. Other than the data warehouse service, AWS also offers another service called Redshift Spectrum – which is for running SQL queries against S3 data. This service is not dealt with here since it is a fundamentally different concept. 

When contemplating the usage of a third-party managed service as the backbone data warehouse, the first point of contention for a data architect would be the foundation on which the service is built, especially since the foundation has a critical impact on how the service will behave under various circumstances. This article aims to give you a detailed overview of what is Amazon Redshift, its features, capabilities, and shortcomings. Let us dive into the details.

Simplify Amazon Redshift ETL using Hevo’s No-Code Data Pipeline

Hevo is the only real-time ELT No-code Data Pipeline platform that cost-effectively automates data pipelines that are flexible to your needs. With integration with 150+ Data Sources (40+ free sources), we help you not only export data from sources & load data to the destinations but also transform & enrich your data, & make it analysis-ready.

Start for free now!

Get Started with Hevo for Free

Comparing Amazon Redshift to Traditional Data Warehouses

Traditional Data Warehouses become inefficient as the data keeps growing, and it is inevitable. It requires regular hardware updates, maintenance, separate staff to handle its software updates. In case of any minor failure, these On-premise Data Warehouses can remain shut down for long hours, making most business workflow stop. AWS Redshift Data Warehouse is a perfect alternative to tackle all the imperfections of Traditional Data Warehouses. Unlike On-premise Data Warehouse solutions, Amazon Redshift Data Warehouse offers greater flexibility to users at a low cost than the former one. 

Companies don’t need to own hardware or manage any software updates in Amazon Redshift Data Warehouse. Also, one can scale up or down the computation power according to the needs. Many factors show why AWS Redshift Data Warehouse is a better choice than Traditional Data Warehouse. The comparison factors are listed below:

  • Architecture 
  • Performance 
  • ETL and Data Transfer
  • Scalability
  • Pricing
  • Maintenance
  • Data Security 

Let’s learn about these factors in detail.

Amazon Redshift Architecture

This section highlights the components of AWS Redshift architecture, thereby giving you enough pointers to decide if this is favorable for your use case. The Redshift Architecture Diagram is as below: 

  1. Redshift Cluster: Redshift uses a cluster of nodes as its core infrastructure component. A cluster usually has one leader node and a number of compute nodes. In cases where there is only one compute node, there is no additional leader node. 
  2. Compute Nodes: Each compute node has its own CPU, memory, and storage disk. Client applications are oblivious to the existence of compute nodes and never have to deal directly with compute nodes. 
  3. Leader Node: The leader node is responsible for all communications with client applications. The leader node also manages the coordination of compute nodes. Query parsing and execution plan development is also the responsibility of the leader node.  On receiving a query the leader node creates the execution plan and assigns the compiled code to compute nodes. A portion of the data is assigned to each compute node. The final aggregation of the results is performed by the leader node. 

Redshift allows the users to select from two types of nodes – Dense Storage nodes and Dense Compute nodes. Customers can select them based on the nature of their requirements – whether it is storage heavy or compute-heavy. Redshift’s cluster can be upgraded by increasing the number of nodes or upgrading individual node capacity or both.

Internally the compute nodes are partitioned into slices with each slice having a portion of CPU and memory allocated to it.  The node slices will work in parallel to complete the work that is allocated by the leader node. 

Here you can read more on AWS Redshift architecture.

Now that we have an idea about how Redshift architecture works, let us see how this architecture translates to performance.

Amazon Redshift Performance 

The next part of completely understanding what is AWS Redshift is to decode Redshift architecture. Redshift’s architecture allows massively parallel processing, which means most of the complex queries gets executed lightning quick. One quirk with Redshift is that a significant amount of query execution time is spent on creating the execution plan and optimizing the query

In the case of frequently executing queries, subsequent executions are usually faster than the first execution. Query execution can be optimized considerably by using proper distribution keys and sort styles

Data loading from flat files is also executed parallel using multiple nodes, enabling fast load times. At the time of writing this, Redshift is capable of running the standard cloud data warehouse benchmark of TPC-DS in 25 minutes on 3 TB data set using 4 node cluster.

Amazon Redshift ETL and Data Transfer

Amazon Redshift ETL Process
Image Source

A significant part of jobs running in an ETL platform will be the load jobs and transfer jobs. Data load to Redshift is performed using the COPY command of Redshift. For executing a copy command, the data needs to be in EC2. If there is already existing data in Redshift, using this command can be problematic since it results in duplicate rows. In such cases, a temporary table may need to be used. The best method to overcome such complexity is to use a proven Data Integration Platform like Hevo, which can abstract most of these details and allow you to focus on the real business logic.

Additionally, Amazon offers two services that can make things easier for running an ETL platform on AWS. AWS Glue and AWS Data Pipeline. AWS glue can generate python or scala code to run transformations considering the metadata that is residing in the Glue Data catalog. 

AWS data pipeline, on the other hand, helps schedule various jobs including data transfer using different AWS services as source and target. 

Both the above services support Redshift, but there is a  caveat. These services are tailor-made for AWS services and do not really do a great job in integrating with non-AWS services. So if part of your data resides in on-premise setup or a non-AWS location, you can not use the ETL tools by AWS. 

In those cases, it is better to use a reliable ETL tool like Hevo which has the ability to integrate with multitudes of databases, managed services, and cloud applications. Hevo will help you move your data through simple configurations and supports all the widely used data warehouses and managed services out of the box.

Amazon Redshift uses Postgres as its query standard with its own set of data types. Since the data types are Redshift proprietary ones, there needs to be a strategy to map the source data types to Redshift data types. AWS Redshift can manage this automatically using its own logic but can surprise the user with unexpected results if the mapping logic is not carefully considered during the data transfers.

Modern ETL systems these days also have to handle near real-time data loads. Even though Amazon Redshift is a data warehouse and designed for batch loads, combined with a good ETL tool like Hevo, it can also be used for near real-time data loads.

Amazon Redshift Scalability

One of the most critical factors which makes a completely managed data warehouse service valuable is its ability to scale. Redshift can scale quickly and customers can choose the extent of capability according to their peak workload times.

It supports two types of scaling operations: 

  1. Classic Resizing: First is the classic resizing which allows customers to add nodes in a matter of a few hours. Classic resizing is available for all types of nodes. 
  2. Elastic Resizing: Elastic resizing makes even faster-scaling operations possible but is available only in case of nodes except the DC1 type of nodes. That said, there is a short window of time during even the elastic resize operation where the database will be unavailable for querying. 

Redshift also allows you to spin up a cluster by quickly restoring data from a snapshot. This is very helpful when customers need to add compute resources to support high concurrency.

Amazon Redshift Pricing

Redshift prices are including compute and storage pricing. Cost is calculated based on the hours of usage. With the ability to quickly restore data warehouses from EC2 snapshots, it is possible to spin up clusters only when required allowing the users to closely manage their budgets. 

Redshift offers two types of nodes – Dense compute and Dense storage nodes. These nodes can be selected based on the nature of data and the queries that are going to be executed. Dense Compute nodes starts from .25$ per hour and comes with 16TB of SSD. Dense storage nodes have 2 TB HDD and start at .85 $ per hour. It is to be noted that even though dense storage comes with higher storage, they are HDDs and hence the speed of I/O operations will be compromised. 

Details on Redshift pricing will not be complete without mentioning Amazon’s reserved instance pricing which is applicable for almost all of AWS services. By committing to using Redshift for a period of 1 year to 3 years, customers can save up to 75% of the cost they would be incurring in case they were to use the on-demand pricing policy.

Amazon Redshift Maintenance

As mentioned in the beginning, AWS Redshift is a completely managed service and as such does not require any kind of maintenance activity from the end-users except for small periodic activity. 

Amazon Redshift internally uses delete markers instead of actual deletions during the update and delete queries. This means there is to be a housekeeping activity for archiving these rows and performing actual deletions. For Redshift, this process is called vacuuming and can only be executed by a cluster administrator. Read more on Redshift vacuum.

Amazon Redshift Data Security

AWS Redshift provides complete security to the data stored throughout its lifecycle – irrespective of whether the data is at rest or in transit. The security is tested regularly by third-party auditors.  It also enables complete security in all the auxiliary activities involved in Amazon Redshift usage including cluster management, cluster connectivity, database management, and credential management. 

By default, all network communication is SSL enabled. It is possible to encrypt all the data. You can also start your cluster in a virtual private cloud for enterprise-level security. 

AWS Redshift also complies with all the well-known data protection and security compliance programs like SOC, PCI, HIPAA BAA, etc.

Now that we know about the capability of Amazon Redshift in various parameters, let us try to examine the strengths and weaknesses of AWS Redshift.

Redshift Security Best Practices

Amazon takes care of the security of the Cloud and the organization takes care of the security in the Cloud. It basically follows a Shared Responsibility security model.

  • Security of the Cloud: Amazon protects the infrastructure where AWS runs its services in the Cloud. Amazon makes sure that AWS features and services can be used securely by the users. AWS Compliance ensures that security levels are regularly tested and verified.
  • Security in the Cloud: The organizations using Redshift are responsible for security related to the AWS service they use. Organizations also take care of other factors like Data Sensitivity, Security Compliance with laws and regulations.

On top of that, you are always secured with Identity and Access Management (IAM), Data Encryption, and Virtual Private Cloud (VPC).

Amazon Redshift Pros

  1. Amazon Redshift is a completely managed service with little intervention needed from the end-user.
  2. It can scale up to storing a Petabyte of data. 
  3. Scaling takes minimal effort and is limited only by the customer’s ability to pay.
  4. Amazon Redshift is faster than most data warehouse services available out there and it has a clear advantage when it comes to executing repeated complex queries.
  5. Amazon Redshift offers on-demand pricing. Together with its ability to spin up clusters from snapshots, this can help customers manage their budget better. It also provides great flexibility with respect to choosing node types for different kinds of workloads.
  6. It offers a complete suite of security with little effort needed from the end-user.
  7. Redshift undergoes continuous improvements and the performance keeps improving with every iteration with easily manageable updates without affecting data.
  8. AWS Data Pipeline and AWS Glue help a great deal in running a completely managed ETL system with little intervention from end-users. AWS Redshift also integrates tightly with all the AWS Services.

Amazon Redshift Cons

  1. Even though it is a completely managed service, it still needs some extent of user intervention for vacuuming.
  2. Redshift pricing is including computing and storage. It is not possible to separate these two. Alternatives like Snowflake enables this.
  3. Data load and transfer involving non-AWS services are complex in AWS Redshift. Using a service like Hevodata can greatly improve this experience.
  4. Redshift is not tailor-made for real-time operations and is suited more for batch operations. Again, a platform like Hevo Data can solve this for you.
  5. Redshift scaling is not completely seamless and includes a small window of downtime where the cluster is not available for querying. This downtime is in the range of minutes for newer generation nodes using elastic scaling but can go to hours for previous generation nodes.

How to Set Up Amazon Redshift?

Before getting started with AWS Redshift:

  • You’ll need an AWS Account.
  • You need to have an Open Firewall Port for Redshift to use. AWS Redshift uses port number 5439 by default.
  • You’ll further need permissions to access other AWS services like Amazon S3, from your Redshift Cluster. You can do so by creating a dedicated IAM Role attached to the Redshift Cluster.

Launching a Redshift Cluster

You’re now all set to launch a Redshift Cluster.

  • Step 1: Open the Amazon Redshift console and select the region in which you want your cluster.
  • Step 2: Choose Quick Launch Cluster and enter the details as shown below.
Image Source
  • Step 3: Click on the “Launch Cluster” button to launch the cluster. You can check the Cluster Status under the list of clusters.
  • Step 4: You can further modify the launched cluster by clicking the “Modify Cluster” button.
  • Step 5: The Redshift cluster is now launched. Now, you will need to configure a security group to authorize access to Redshift Cluster.

Connecting to the Redshift Cluster

You can now connect to your Redshift Cluster to run queries. To do this, you can:

  1. Use the AWS Query Editor to connect to the Redshift Cluster from the AWS Management Console.
  2. Use a SQL Client Tool of your choice (like SQL Workbench/J) to connect to your Redshift Cluster.

Amazon Redshift Alternatives

Amazon Redshift Alternatives
Image Source

Redshift is not the only Cloud Data Warehouse service available in the market. A list of the most popular cloud data warehouse services which directly competes with Redshift can be found below.

  1. Azure SQL Data Warehouse Microsoft’s own cloud data warehouse service provides a completely managed service with the ability to analyze petabytes of data. Even though this is considered slower in case of complex queries, it makes complete sense for a customer already using the Microsoft stack.
  2. Google Big Query – Big Query offers a cheap alternative to Redshift with better pricing. Generally benchmarked as slower than Redshift, BigQuery is considered far more usable and easier to learn because of Google’s emphasis on usability. You can read a comparison – Redshift Vs BigQuery here.
  3. Oracle Autonomous Data Warehouse – Oracle claims ADW to be faster than Redshift, but at the moment standard benchmark tests are not available. Oracle allows customers to use their on-premise Oracle licenses to decrease the costs. For customers already spending money on Oracle infrastructure, this is a big benefit.
  4. Snowflake – Snowflake offers a unique pricing model with separate compute and storage pricing. The performance is comparable to Redshift or even higher in specific cases. For customers with light workloads, Snowflake’s pure on-demand pricing only for compute can turn out cheaper than Redshift. You can read a comparison – Snowflake Vs Redshift here.

Learn more about Amazon Redshift Architecture and its Components

When to use Amazon Redshift?

Redshift advertises itself as a know it all Data Warehouse service, but it comes with its own set of quirks. But, there are some specific scenarios where using Redshift may be better than some of its counterparts.

  1. Your ETL design involves many Amazon services and plans to use many more Amazon services in the future. Redshift with its tight integration to other Amazon services is the clear winner here.
  2. Your cluster will be always running near-maximum capacity and query workloads are spread across time with very little idle time. This particular use case voids the pricing advantage of most competitors in the market.
  3. You are completely confident in your product and anticipate a cluster running at full capacity for at least a year. This allows you to use AWS Reserved pricing and can help cut costs to a big extent.
  4. The data design is completely structured with no requirement or future plans for storing semi-structured on unstructured data in the warehouse. 
  5. Complete security and compliance are needed from the very start itself and there is no scope to skip on security and save costs.

Conclusion

Amazon Redshift offers a strong value proposition as a data warehouse service and delivers on all counts. Amazon continuously updates it and performance improvements are clearly visible with each iteration. Tight integration with AWS Services makes it the defacto choice for someone already deep into AWS Stack.

Most of the limitations addressed on the data loading front can be overcome using a Data Pipeline platform like Hevo Data in combination with Amazon Redshift, creating a very reliable, always available Data Warehouse service.

Visit our Website to Explore Hevo

Want to take Hevo for a spin?

Sign Up here for a 14-day free trial and experience the feature-rich Hevo suite first hand.

Share your experience of learning about Amazon Redshift in the comments section below!

Sarad Mohanan
Software Engineer, Hevo Data

With around a decade of experience, Sarad has designed and developed fundamental components of Hevo. His expertise lies in building lean solutions for various software problems, mentoring fellow engineers and exploring new technologies.

All your customer data in one place.