Analysing Structured Data with Amazon Redshift
This lesson explains Amazon Redshift, a petabyte-scale columnar data warehouse for complex analytics and business intelligence on structured data.
Learning outcomes
After completing this lesson, you will be able to:
- Identify Redshift features such as RA3, Spectrum and Serverless.
- Explain the features that make queries fast.
- Describe how snapshots and Multi-AZ deployments protect a warehouse.
Features
Several Redshift features address scale and integration. RA3 nodes keep data in managed storage backed by S3, so compute and storage scale independently. Redshift Serverless removes cluster sizing: it provides capacity as queries run and charges for the compute used, which suits variable workloads. Redshift Spectrum queries data in S3 alongside warehouse tables, so rarely used data need not be loaded.
Concurrency scaling adds capacity automatically when many queries arrive at once, so users do not wait in a queue. Zero-ETL integrations replicate data from Aurora, RDS and DynamoDB continuously, without pipelines. Data sharing lets other clusters and accounts query live data without copying it. The following table summarises the features.
| Feature | What it does |
|---|---|
| RA3 managed storage | Scales compute and storage independently |
| Redshift Serverless | No clusters to size; pay for compute used |
| Redshift Spectrum | Queries data in S3 alongside warehouse tables |
| Concurrency scaling | Adds capacity automatically for bursts of queries |
| Zero-ETL integrations | Replicate data from Aurora, RDS and DynamoDB continuously |
| Data sharing | Share live data between clusters and accounts without copying |
Redshift features
Performance
Amazon Redshift is designed for fast analytical queries. Columnar storage and compression reduce the data read from disk, and massively parallel processing divides each query across many nodes. Distribution keys and sort keys, or automatic table optimisation, place and order data so that joins move less data between nodes and filters skip blocks.
Materialised views store the results of repeated, expensive queries so they return quickly, and workload management allocates resources between workloads, so that short dashboard queries are not delayed by long-running reports.
Redshift performance and resilience
Resilience
Amazon Redshift protects data with snapshots stored in Amazon S3. Automated snapshots are taken regularly and kept for a configurable retention period, and Redshift can copy snapshots to another Region automatically, so the warehouse can be restored there if the primary Region fails. For availability within a Region, RA3 clusters can be deployed Multi-AZ, running compute in two Availability Zones so the warehouse keeps serving queries if one zone fails.
A warehouse for 200 analysts
A data warehouse serving many analysts must meet several performance and scale requirements. The following table identifies the Redshift feature that meets each.
| Requirement | Redshift feature |
|---|---|
| Fast queries over years of sales data | Columnar storage with sort keys on date |
| Morning bursts when everyone runs reports | Concurrency scaling |
| Include older data kept in S3 | Redshift Spectrum |
| Fresh order data from Aurora without ETL | Zero-ETL integration |
| A daily summary used by many dashboards | A materialised view |
Athena would cost more and respond more slowly for this constant, heavy use; Redshift is designed for it.
What does Redshift Spectrum allow?
Show answer
Querying data in S3 directly from Redshift, joined with tables in the warehouse, without loading it first.
Exam Tips
Remember for the exam
- For complex analytics and BI on structured data at scale, use Redshift.
- To query S3 data together with warehouse tables, use Redshift Spectrum.
- To speed up repeated Redshift queries, use materialised views.
- For unpredictable bursts of queries, use concurrency scaling.
- To load operational data into Redshift without pipelines, use zero-ETL integrations.