Introduction to Performance and Purpose-Built Data Stores
Caching, buffering, replicas, purpose-built databases and high-performance compute and storage.
- 8 lessons
- Module quiz
Performance problems in an architecture usually have one of a few causes: the same data is read repeatedly from a slow source, bursts of writes exceed what a back end can absorb, all reads go to a single database, or the data store does not suit the way the data is accessed. Each cause has a matching remedy, and choosing the right one depends on understanding the workload's access pattern, meaning which data is read or written, how often and how quickly.
Caches, such as Amazon CloudFront, Amazon ElastiCache and DynamoDB Accelerator (DAX), keep frequently read data close to where it is needed. Buffers, such as Amazon SQS and Amazon Kinesis, absorb bursts so that back ends can be sized for average rather than peak load. Read replicas spread reads across several copies of a database. Purpose-built databases, such as Amazon DynamoDB for key-value access, Amazon Neptune for graphs and Amazon OpenSearch Service for search, each serve one kind of access pattern far better than a general-purpose database. For specialised workloads, high-performance computing (HPC) uses dedicated networking and storage.
Why it matters for the exam
Performance questions generally state a latency or throughput target and an access pattern, and ask which caching layer, data store or compute option meets it. The access pattern is usually the deciding detail, so reading it carefully matters more than knowing every feature of every database.
How this module is organised
Placing Caches at Each Layer of an Architecture, Absorbing Write Bursts with Buffers and Scaling Reads with Replicas and Local Reads explain the three general remedies for load. Selecting Purpose-Built Databases explains how to choose a database from its access pattern. Designing High-Performance Compute Environments and Matching High-Performance Storage to Access Patterns explain the options for HPC and other demanding workloads. Diagnosing DynamoDB Data Modelling Problems and Choosing DynamoDB Capacity and Avoiding Hot Partitions explain how to design DynamoDB tables that perform well at scale.
- Placing Caches at Each Layer of an Architecture Lesson 1
- Absorbing Write Bursts with Buffers Lesson 2
- Scaling Reads with Replicas and Local Reads Lesson 3
- Selecting Purpose-Built Databases Lesson 4
- Designing High-Performance Compute Environments Lesson 5
- Matching High-Performance Storage to Access Patterns Lesson 6
- Diagnosing DynamoDB Data Modelling Problems Lesson 7
- Choosing DynamoDB Capacity and Avoiding Hot Partitions Lesson 8
- Practise and review
- Test your knowledge 5 questions