Lesson 8 of 9 Data Engineering Practices

Matching Services to the Volume, Velocity and Variety of Data

This lesson explains the three characteristics, volume, velocity and variety, that describe a dataset and drive most data architecture decisions.

Learning outcomes

After completing this lesson, you will be able to:

  • Match services to data volume and velocity.
  • Distinguish structured, semi-structured and unstructured data.
  • Choose services for a source from its three Vs.

Volume and velocity

Volume is the amount of data: megabytes can be processed by a Lambda function, terabytes call for distributed engines such as Glue, EMR or Redshift, and petabytes call for a data lake on S3 with partitioning and columnar formats. Volume also drives cost, so it decides how aggressively data is compressed, partitioned and tiered to cheaper storage.

Velocity is the speed at which data arrives and must be processed. Daily or hourly files suit batch processing with Glue or EMR; continuous events that must be acted on within seconds suit streaming with Kinesis Data Streams or MSK and processing with Flink or Lambda; and delivery within a minute or two suits Amazon Data Firehose. Higher velocity usually means higher cost and more operational complexity, so the required freshness should be confirmed before choosing streaming.

Sort into groups

Matching tools to volume and velocity

Exam skills 1.2.9

Choose the processing approach for each workload.

Log in to try this activity Interactive activities are free with an account.

Variety

Variety is the range of data structures. Structured data has a fixed schema of rows and columns, such as database tables and well-formed CSV files, and suits relational databases and Redshift. Semi-structured data, such as JSON, XML and Avro, carries its own structure that can vary between records; it suits S3 with Glue crawlers, Redshift's SUPER type and DynamoDB. Unstructured data, such as text documents, images, audio and video, has no predefined model; it is stored in S3 and needs extraction, for example with an LLM, before it can be analysed. The following table summarises the three types.

TypeExamplesTypical AWS handling
StructuredDatabase tables, fixed-column CSVRDS, Aurora, Redshift; Parquet in S3
Semi-structuredJSON, XML, Avro, logsS3 with Glue crawlers; Redshift SUPER; DynamoDB; OpenSearch
UnstructuredDocuments, images, audio, videoS3; extraction with Bedrock or other AI services before analysis

The following diagram matches a logistics company's three data sources to the ingestion path that suits each.

The logistics company's three sources matched to services. Nightly 20 GB order exports are structured and low velocity, so they load into Redshift with COPY. Vehicle telemetry is semi-structured JSON arriving thousands of times a second, so it goes through Kinesis and Firehose to Parquet in S3. Scanned delivery notes are unstructured, so they land in S3 and an LLM extracts their fields.
Each path follows from the source's volume, velocity and variety.
Sort into groups

Structured, semi-structured or unstructured?

Exam skills 1.2.9

Classify each kind of data.

Log in to try this activity Interactive activities are free with an account.
Worked example

Matching services to the three Vs

A logistics company has three new sources. Nightly exports of 20 GB of order tables are structured, low-velocity and moderate in volume, so they load into Redshift with COPY. Vehicle telemetry is semi-structured JSON arriving thousands of times a second, so it flows through Kinesis Data Streams and Firehose into partitioned Parquet in S3. Scanned delivery notes are unstructured PDF files, so they land in S3 and a pipeline extracts the delivery fields with an LLM before loading them.

Check yourself

Is JSON structured, semi-structured or unstructured data?

Show answer

Semi-structured: it carries its own structure, but records need not share a fixed schema.

Exam Tips

Remember for the exam

  • Volume is how much data, velocity how fast it arrives, variety how varied its structure is.
  • Structured data has a fixed schema; semi-structured data (JSON, XML, Avro) carries its own; unstructured data has none.
  • Seconds-level velocity calls for streaming; hourly or daily velocity suits batch.
  • Semi-structured JSON in Redshift: the SUPER data type.