AI & Data
Build reliable data platforms: SQL, modelling, warehouses and lakes, pipelines, Spark, streaming and governance.
A path for developers who want to build the systems behind analytics and machine learning. It runs from programming and database fundamentals through warehouses, lakes and cloud services to orchestration, distributed processing, streaming, DevOps practices and data governance. Each subject links the official documentation of the tool or a reference article.
The subjects follow the roadmap.sh Data Engineer roadmap.
Data engineers build and run the systems that move data from where it is produced to where it is used: ingestion jobs, storage layers, transformations and the serving tables analysts and models read. The job is closer to backend and platform engineering than to statistics.
Designing, building and operating pipelines and storage so that data arrives complete, on time, correctly typed and documented. The output is trustworthy tables and streams, not reports.
Data scientists ask questions of data and build models; data engineers make sure the data they query exists, is fresh and is shaped well. The roles overlap around feature pipelines and ML platforms.
Strong SQL and Python, data modelling, one cloud platform, an orchestrator, a distributed engine like Spark, plus the operational habits: tests, monitoring, on-call for failed loads and cost control.
Start from data volume, latency needs, team skills and budget, not from what is fashionable. Prefer managed services and boring, well-supported tools; every extra system is something you must operate.
A useful mental model for the whole job: data is generated in source systems, ingested, stored, transformed and finally served to consumers. Cross-cutting concerns — security, data management, orchestration and DataOps — apply at every stage.
Data is born in systems you usually do not own: application databases, event trackers, devices and third-party APIs. Learn their schemas, update patterns and failure modes before building on them.
Choosing where data lives at each stage: object storage for raw files, warehouses for modelled tables, key-value stores for low-latency lookups. Weigh cost, query patterns, retention and file formats like Parquet.
Moving data out of sources into your platform, in batches or as a continuous stream. Decide on full versus incremental loads, change data capture, and how to handle late or duplicate records.
Delivering processed data to its consumers: BI dashboards, ML feature stores, APIs and reverse-ETL syncs into operational tools. Serving is where data quality problems become visible to the business.
Python is the default language for pipelines, orchestration and glue code; SQL does the heavy lifting inside databases. A JVM language helps when you work deep inside Spark, Kafka or Flink.
Learn the standard library well (csv, json, datetime, pathlib, logging), virtual environments, type hints and packaging, then pandas or Polars and PySpark for tabular work.
Spark itself is written in Scala, and its typed Dataset API is most natural there. Worth learning if you write performance-critical Spark jobs or contribute to JVM data tools.
Kafka, Flink, Hadoop and many connectors run on the JVM. Java knowledge helps with writing Kafka Streams apps, custom connectors, and reading stack traces from these systems.
Fast-compiling, single-binary language used for infrastructure tooling, high-throughput ingestion services and CLI utilities around data platforms.
Engineering fundamentals that every later topic leans on: algorithmic thinking, version control, the Linux shell, how machines talk over a network, and what goes wrong when work is split across many machines.
Hash maps, sorting, trees and big-O reasoning explain why a join spills to disk, why an index helps and why a nested loop over two large lists never finishes.
Pipelines, SQL models and infrastructure all live in Git. Know branching, rebasing, pull requests and code review, and keep secrets and large data files out of the repository.
Most data infrastructure runs on Linux. Be comfortable with the shell, pipes, grep/awk/sed, permissions, processes, cron, SSH and reading logs on a remote box.
IP addressing, DNS, TCP versus UDP, HTTP and TLS, ports and firewalls. Most "the job cannot reach the database" incidents are VPC, security-group or DNS problems.
Partitioning, replication, consensus, clocks and partial failure. These ideas explain shuffles in Spark, partitions in Kafka and why exactly-once delivery is hard.
Every pipeline starts at a source with its own shape and quirks. Know how to pull from each kind without hurting it — read replicas instead of primaries, rate limits on APIs, and compact formats for high-volume device data.
Operational databases are the most common source. Extract with incremental queries on an updated_at column or, better, change data capture from the transaction log so deletes are not missed.
SaaS tools expose data over REST or GraphQL. Handle pagination, rate limits, retries with backoff, auth token refresh and schema changes the vendor ships without warning.
Application and server logs are high-volume, semi-structured event data. Emit them as structured JSON and ship them through agents or a stream rather than scraping text files.
Sensors and devices send small, frequent readings, often over MQTT, with unreliable connectivity. Expect out-of-order and late data, and design for time-series storage.
Apps emit user events through analytics SDKs that batch and send them when the device is online. Event names and properties need a tracking plan or they drift fast.
Before writing an extractor, decide how often you need the data, how much arrives, what the schema contract is and who owns it upstream. Plan for duplicates, malformed rows, personal data you should not collect at all, and how you will backfill history.
Core database theory you will apply every day: modelling, SQL, indexes, transactions and the difference between systems built for many small writes and systems built for large scans. These concepts carry across every engine.
Joins, aggregation, GROUP BY with HAVING, subqueries, CTEs and window functions like ROW_NUMBER() and LAG(). SQL is the language of transformation in most modern stacks.
Splitting data into related tables (1NF to 3NF) so each fact is stored once and updates cannot create contradictions. Analytical models deliberately denormalise again for read speed.
Entity-relationship modelling for applications, Kimball dimensional modelling for analytics, Data Vault for auditable enterprise warehouses, and wide denormalised tables for columnar engines.
B-tree indexes speed up lookups and range scans at the cost of slower writes and extra storage. Warehouses use other tricks instead: partitioning, clustering and min/max zone maps.
Groups of statements that commit or roll back together under ACID guarantees. For pipelines, wrapping a load in one transaction prevents readers from ever seeing half-written data.
During a network partition a distributed store must choose between consistency and availability. It frames trade-offs in systems like Cassandra (tunable) versus single-leader databases.
OLTP systems serve many small, concurrent reads and writes on row stores; OLAP systems answer big aggregate queries over columnar storage. Pipelines usually copy data from the first to the second.
Vertical means a bigger machine — simple but capped. Horizontal means more machines, which needs sharding or partitioning and brings distributed-systems complexity.
Row-oriented SQL databases are the backbone of most source systems and still a fine choice for small analytical workloads. Learn one deeply — PostgreSQL is a strong default — and understand how others differ.
Open-source, standards-friendly and extensible, with JSONB, rich indexing and logical replication for CDC. A common source system and often the first warehouse a small team uses.
Widely deployed open-source database behind many web apps. Its binlog is what CDC tools read; know the difference between statement and row-based formats.
Community fork of MySQL that stays largely compatible while adding its own storage engines and features. Treat it as MySQL-like but check replication and JSON differences.
AWS-managed engine compatible with MySQL and PostgreSQL, with storage replicated across availability zones and fast read replicas. Zero-ETL integrations can feed Redshift directly.
Commercial database still common in banks and large enterprises. You will mostly meet it as a source to extract from, often with licence and access constraints.
Microsoft SQL Server and its T-SQL dialect, common in Windows-centric companies. It has built-in change tracking and CDC features that ingestion tools rely on.
Non-relational stores trade joins and rigid schemas for flexible data models and easy horizontal scaling. They split into document, wide-column, graph and key-value families, each tuned for a different access pattern.
Document databases store self-describing JSON-like records, so nested data is read in one go without joins. Extracting from them means flattening nested arrays and coping with fields that appear in some documents only.
The most popular document store, with an aggregation pipeline for queries and change streams that make CDC straightforward.
Search and analytics engine built on inverted indexes. Used for full-text search, log analytics and as a serving layer, rarely as a system of record.
Azure's globally distributed multi-model database with selectable consistency levels and throughput billed in request units. Its change feed powers downstream syncs.
Apache document database with an HTTP API and multi-master replication, built for offline-first sync between devices and servers.
Wide-column stores organise data by row key and column families and spread it across many nodes for huge write throughput. Model tables around your queries, since there are no joins and few secondary indexes.
Leaderless, masterless store with tunable consistency per query. Partition key design decides everything; one oversized partition can hurt a whole cluster.
Google Cloud's managed wide-column store for time-series and high-throughput workloads, with an HBase-compatible API. Row key design avoids hotspots.
Wide-column store on top of HDFS, modelled after Bigtable. Mostly found in established Hadoop clusters today.
Graph databases store nodes and relationships as first-class data, making multi-hop traversals cheap. They fit fraud detection, recommendations, lineage and knowledge graphs.
The simplest model: get and put values by key, extremely fast and easy to scale. Used for caches, session state, feature lookups and deduplication keys in streaming jobs.
In-memory store with rich data structures — hashes, sorted sets, streams — plus TTLs. Common as a cache, rate limiter or lightweight queue.
A plain distributed in-memory cache with no persistence or data types beyond strings. Simple and fast when all you need is caching.
Serverless AWS key-value and document store with single-digit-millisecond reads. Design partition and sort keys for your access patterns up front; DynamoDB Streams feed CDC.
An organisational approach where domain teams own and publish their data as products, supported by a self-service platform and federated governance. It solves a scaling problem of people, not of technology, and needs mature teams to work.
A central analytical database of cleaned, modelled, historical data, optimised for large scans and aggregations. Modern cloud warehouses separate storage from compute so you pay for queries rather than idle servers.
A subject-oriented, integrated, time-variant store that consolidates data from many sources so the business can query one consistent version of the truth.
Kimball's bus of conformed dimensional marts, Inmon's normalised enterprise warehouse feeding marts, and today's layered staging-intermediate-marts or bronze-silver-gold medallion designs.
A star schema has one fact table joined to flat dimensions; a snowflake normalises dimensions into sub-tables. Stars are simpler and faster to query, so they are the usual default.
How to record changes to dimension attributes: Type 1 overwrites, Type 2 adds a new row with validity dates, Type 3 keeps a previous-value column. dbt snapshots implement Type 2.
A subset of the warehouse focused on one department or subject, such as finance or marketing, modelled for that audience's questions.
Serverless warehouse billed by bytes scanned or reserved slots. Partition and cluster tables, and avoid SELECT *, to keep costs down.
Cloud warehouse with separate, independently sized virtual warehouses over shared storage, plus time travel, zero-copy cloning and data sharing. Also queries open table formats in a lake.
AWS's columnar MPP warehouse, provisioned or serverless. Distribution and sort keys matter on provisioned clusters; Spectrum queries data in S3.
Cheap object storage holding raw and processed data in open file formats, readable by many engines. Open table formats such as Delta Lake, Iceberg and Hudi add ACID transactions and schema evolution, turning a lake into a lakehouse.
Open table format storing Parquet files plus a transaction log, giving ACID writes, MERGE, time travel and schema enforcement on object storage.
Managed lakehouse service from the creators of Apache Hudi, focused on fast incremental ingestion into open table formats that several engines can read.
Further patterns for organising data across a company. Most are less about a specific product and more about how integration, metadata and ownership are arranged.
An integration layer that uses metadata and automation to give unified access to data spread over many systems without copying it all into one place.
A central point through which data is exchanged between systems, with consistent formats and governance, rather than point-to-point integrations between every pair.
Design where catalogs, schemas, ownership and lineage are captured automatically as part of building pipelines, so discovery and governance come for free instead of as an afterthought.
Managed services that scale to zero and bill per use — BigQuery, Athena, Lambda, Glue. Great for spiky workloads; watch for runaway costs and cold-start limits.
Most data platforms run on AWS, Azure or Google Cloud. Learn one provider's compute, object storage, managed databases, networking and IAM well; the concepts transfer to the others.
Reference patterns for building on the cloud: multiple availability zones, managed services over self-hosted ones, event-driven designs and least-privilege IAM, balanced against cost.
The largest cloud provider and a common default for data teams. The core data services are S3 for the lake, Glue for catalog and ETL, Redshift or Athena for querying, and IAM tying access together.
Virtual machines by instance type and size. Use spot instances for interruptible batch work and stop idle machines — compute is usually the biggest bill.
Object storage underneath almost every AWS data lake. Learn prefixes and partitioning, storage classes, lifecycle rules, versioning and bucket policies.
Managed PostgreSQL, MySQL, MariaDB, Oracle and SQL Server with automated backups, patching and read replicas — often a pipeline source.
Serverless Spark-based ETL plus the Glue Data Catalog, the Hive-compatible metastore that Athena, Redshift Spectrum and EMR share. Crawlers infer schemas from files in S3.
Microsoft's cloud, strong in enterprises already using Microsoft 365 and SQL Server. Data work centres on Blob Storage and Data Lake Storage, Data Factory for pipelines, and Fabric or Synapse for analytics.
Azure's IaaS compute, sized by VM series. Spot VMs and scale sets cover cheap batch work and autoscaling.
Object storage with hot, cool, cold and archive tiers. Enabling the hierarchical namespace turns it into Data Lake Storage Gen2 with real directories and POSIX-style ACLs.
Fully managed SQL Server engine in the cloud, with serverless and hyperscale tiers.
Azure's managed orchestration and data movement service: pipelines of copy and transform activities with many built-in connectors and triggers.
Google's cloud, popular with analytics-heavy teams thanks to BigQuery. Pair it with Cloud Storage for the lake, Dataflow for batch and stream processing, and Pub/Sub for events.
Google Cloud's virtual machines, with custom machine shapes and cheaper preemptible (spot) VMs for batch work.
Object storage with Standard, Nearline, Coldline and Archive classes. BigQuery can load from or query it directly as external tables.
Managed MySQL, PostgreSQL and SQL Server, with federated queries from BigQuery for quick lookups.
Fully managed runner for Apache Beam pipelines. The same Beam code handles batch and streaming, with autoscaling workers and windowing for event time.
How often and in what unit data moves: whole batches on a schedule, individual events as they happen, or a mix. Latency requirements drive the choice, and streaming costs more to build and operate.
Process bounded chunks of data on a schedule, such as hourly or nightly. Simple to reason about, easy to rerun and backfill, and enough for most reporting.
Handle events continuously with seconds of latency using Kafka plus Flink, Spark Structured Streaming or similar. Deal with event time, watermarks, state and exactly-once semantics.
Combine both: a streaming path for fresh results and a batch path that recomputes accurately (Lambda architecture), or a single replayable stream for both (Kappa).
Chains of extract, transform and load steps, run by an orchestrator that handles schedules, dependencies, retries and backfills. Good pipelines are idempotent: rerunning a day produces the same result, not duplicates.
Pull data from sources with full snapshots, incremental watermarks or CDC. Land it raw and unchanged first so you can always reprocess.
Clean, type, deduplicate, join and aggregate raw data into models. Modern ELT does this inside the warehouse with SQL; heavy or unstructured work goes to Spark.
Write results into the target with append, overwrite-partition or MERGE upserts. Load into a staging table and swap atomically so readers never see partial data.
The most widely used orchestrator: pipelines are Python DAGs of tasks with schedules, retries, sensors and backfills. Keep heavy work out of the scheduler and inside tasks.
Transformations as version-controlled SQL SELECT models with ref() dependencies, tests, docs and incremental materialisations. It turned analytics SQL into software engineering.
Spotify's older Python workflow library based on tasks with outputs as targets. Still found in legacy stacks but rarely chosen for new ones.
Python-native orchestrator where flows are decorated functions, with dynamic tasks, retries and a hosted or self-run UI. A lighter alternative to Airflow.
When data outgrows one machine, work is split across a cluster: storage is spread over nodes, a scheduler places tasks, and a resource manager shares CPU and memory between jobs.
Many networked machines acting as one system, so a job can process data in parallel and survive individual node failures by retrying tasks elsewhere.
Files split into blocks replicated over many nodes, so reads run in parallel and a lost disk loses nothing. HDFS pioneered it for analytics; object stores have largely replaced it.
Deciding which jobs run where and when: queues, priorities, fair sharing and data locality inside a cluster, plus time-based schedules at the orchestrator level.
Systems that allocate cluster resources to applications — YARN in Hadoop, Kubernetes for containers — and restart failed work.
As a cluster manager, YARN lets Spark, MapReduce and other engines share one Hadoop cluster through queues with capacity or fair scheduling.
Engines for processing data too large for one machine. Spark is the one to learn well; the Hadoop ecosystem explains where today's tools came from and still runs in many companies.
Distributed engine with DataFrame, SQL and streaming APIs in Python, Scala and Java. Understand lazy evaluation, partitions, shuffles, broadcast joins and reading the Spark UI.
Hadoop's distributed file system: a NameNode holding metadata and DataNodes holding replicated blocks. Optimised for large sequential reads, poor with many small files.
The original programming model: map records to key-value pairs, shuffle by key, reduce each group. Disk-heavy and slow next to Spark, but the idea underlies every engine.
Hadoop's resource layer: a ResourceManager grants containers and a per-application ApplicationMaster negotiates and tracks them.
Packaging jobs and their dependencies into images makes pipelines reproducible from laptop to production. Orchestrators then run, scale and restart those containers across a cluster.
Build images with a Dockerfile, run them as containers, and use Compose for local stacks like Postgres plus Airflow. Keep images small and pin versions.
Schedules containers across nodes with deployments, jobs, cron jobs and autoscaling. Airflow, Spark and Flink all have Kubernetes executors or operators.
Google's managed Kubernetes, including an Autopilot mode where Google manages nodes and you pay per pod.
Amazon's managed Kubernetes control plane, with managed node groups or Fargate for serverless pods.
Automate testing and deployment of pipeline code, SQL models and infrastructure. A typical setup lints and tests on every pull request, builds a dbt or Spark job against a dev target, and deploys on merge.
Workflows in YAML triggered by repository events, running on hosted or self-hosted runners. Reusable actions cover most setup steps.
Pipelines defined in .gitlab-ci.yml with stages, jobs and runners, built into GitLab.
Hosted CI service configured with .circleci/config.yml, with reusable orbs and good caching.
GitOps continuous delivery for Kubernetes: it watches a Git repo of manifests and keeps the cluster in sync with it.
Watch both the infrastructure and the data: job durations, failures, consumer lag, row counts and freshness. Alert on symptoms users would notice, such as a table that has not updated, rather than every warning.
Open-source metrics system that scrapes time series and queries them with PromQL, usually paired with Grafana dashboards and Alertmanager.
Commercial SaaS for metrics, logs and traces with integrations for Airflow, Spark, Kafka and cloud services. Watch custom-metric costs.
Error tracking that groups exceptions with stack traces and context, useful for catching failures in Python jobs and services.
Commercial observability platform for APM, infrastructure metrics and logs, queried with its NRQL language.
Test pipeline code like any software, and also test the data itself: schemas, uniqueness, null rates and referential integrity. Run code tests in CI and data tests on every load.
Test transformation functions on small, hand-built inputs with pytest; for Spark, use a local session and tiny DataFrames. dbt unit tests do the same for SQL models.
Run components together against real dependencies — a containerised database or Kafka — to catch connection, schema and serialisation problems unit tests miss.
Push sample data through the whole pipeline in a staging environment and assert on the final tables or dashboards.
Check that a pipeline meets its business requirements: given these inputs, the output metrics and records match what stakeholders expect.
Randomised experiments comparing two variants. Data engineers supply reliable assignment and event data so analysts can measure the difference.
Run the pipeline or service at production-like or higher volume to find throughput limits, memory blow-ups and slow stages before real traffic does.
A quick check right after deployment that the basics work: the DAG parses, credentials connect, and one small run succeeds.
Brokers decouple producers from consumers so each side can scale, fail and deploy independently. They are the backbone of event-driven architectures and real-time pipelines.
A broker buffers messages between services, absorbing traffic spikes, allowing retries and letting several consumers react to the same event without the producer knowing them.
Synchronous calls wait for a reply and fail if the other side is down; asynchronous messages are fire-and-continue, more resilient but eventually consistent and harder to trace.
Queues hand each message to one consumer and delete it once acknowledged; streams keep an ordered, replayable log that many consumer groups read at their own offsets.
Make consumers idempotent since delivery is at-least-once, use dead-letter queues, version schemas with a registry, pick partition keys carefully and alert on consumer lag.
Distributed, partitioned, replicated commit log for event streaming. Learn topics, partitions, consumer groups, offsets, retention and Kafka Connect for moving data in and out.
Traditional message broker with exchanges, queues and routing keys, plus streams in recent versions. Suits task queues and flexible routing.
Fully managed queue service. Standard queues are at-least-once and unordered; FIFO queues add ordering and deduplication at lower throughput.
Managed publish/subscribe: one message to a topic fans out to SQS queues, Lambda functions, HTTP endpoints or email.
Define buckets, warehouses, clusters and permissions in version-controlled code instead of clicking in a console. Changes get reviewed, environments stay consistent, and you can rebuild everything after a disaster.
Declarative tools describe the desired end state and work out the steps; imperative scripts list the steps themselves. Declarative is the norm for infrastructure because it handles drift.
Applying the same configuration twice yields the same result with no extra changes. The same property makes pipelines safe to rerun.
Package common pieces — a bucket with standard encryption, a warehouse with roles — as modules with inputs, so every team builds them the same way.
Keep dev, staging and production as copies of the same code with different variables and separate state, so changes are promoted rather than recreated by hand.
The most common IaC tool: HCL configs, providers for every cloud and SaaS, a state file, and plan before apply. Store state remotely with locking.
Open-source fork of Terraform under the Linux Foundation, created after the licence change and largely compatible with existing configurations.
Define AWS infrastructure in TypeScript, Python or other languages; it synthesises CloudFormation templates and deploys them.
Google Cloud's own template-based IaC service. Google now steers users towards Terraform-based Infrastructure Manager instead.
Analysts describe what happened, diagnose why, predict what is next and recommend actions. Knowing how they work tells you which tables, grains and freshness guarantees to build for them.
BI tools turn modelled warehouse tables into dashboards and self-service exploration. A consistent semantic layer of metric definitions keeps numbers matching across reports.
Microsoft's BI suite with Power Query for shaping data, DAX for measures and a star-schema-friendly in-memory model.
Drag-and-drop visual analytics tool, strong for exploratory charts. Connect live to the warehouse or use extracts for speed.
Google Cloud BI tool built around LookML, a version-controlled semantic layer that defines dimensions, measures and joins once for everyone.
Python library for building simple interactive data apps from a script — handy for internal tools and quick prototypes.
The warehouse stops being a dead end: modelled tables such as lead scores or lifetime value are pushed out to the CRM, ad and support tools that sales and marketing work in every day, keeping those tools consistent with the dashboards.
ETL moves data from operational systems into the warehouse; reverse ETL moves warehouse results back out to them, mapping tables to the destination's objects and fields.
Lead scores in Salesforce, churn-risk flags in a support tool, audiences for ad platforms, and product usage data for customer success.
Reverse-ETL platform, now part of Fivetran as Activations, that pushes warehouse models into SaaS destinations with field mapping, scheduled syncs and audience building.
Reverse-ETL and audience platform that runs SQL or dbt models against the warehouse and pushes the results to many destinations.
Customer data platform that collects events from apps and sites and routes them to warehouses and tools; its Reverse ETL feature sends warehouse data back out.
Data platforms concentrate an organisation's most sensitive information, so protect it in layers: who can access what, encryption everywhere, and techniques that hide sensitive values from people who do not need them.
Authentication proves who a user or service is; authorization decides what it may do. Use SSO and service identities over shared passwords, and grant least-privilege roles.
Encrypt data in transit with TLS and at rest with managed keys (KMS). Column-level or client-side encryption protects the most sensitive fields even from administrators.
Replace a sensitive value such as a card number with a random token, keeping the mapping in a separate secured vault. Analysts can still join on tokens without seeing originals.
Show altered values — partial card numbers, hashed emails — to users without clearance. Warehouses support dynamic masking policies applied at query time based on role.
The umbrella term for making data unreadable or unidentifiable: masking, tokenization, encryption, shuffling and adding noise. Pick a method by whether you ever need the original back.
Making data trustworthy, findable and legally compliant: quality checks, lineage, catalogs, shared standards and the regulations that dictate what you may collect, keep and process.
Accuracy, completeness, consistency, timeliness and uniqueness, enforced by automated checks on every load. Fail loudly or quarantine bad rows rather than silently passing them on.
A graph of where each dataset came from and what depends on it, used for impact analysis before changes and root-cause analysis after failures. OpenLineage standardises the events.
Catalogs that record schemas, owners, descriptions, tags and usage so people can find and trust data. DataHub, OpenMetadata and cloud catalogs fill this role.
Using shared formats, schemas and identifiers so data moves between systems and organisations without lossy translation — open file formats, standard codes and agreed data contracts.
EU regulation on personal data: lawful basis, purpose limitation, minimisation, and rights such as access and erasure. Pipelines must be able to find and delete a person's data everywhere.
The US Electronic Communications Privacy Act, governing interception of communications and access to stored communications held by service providers.
EU law classifying AI systems by risk, with data-governance, documentation and transparency duties for high-risk uses. Training data provenance and quality fall partly on data teams.