From Notebooks to Production: Build Data Pipelines & Deploy ML (AWS, Kafka, Streaming)

Episode 2 63 min

Andreas Kretz Data Engineer

Episode 2 · From Notebooks to Production: Build Data Pipelines & Deploy ML (AWS, Kafka, Streaming)

63 min

What we talked about

Andreas Kretz is a data engineer from Germany who calls himself "the plumber of data science". He started as a software engineer in an industrial IoT project that analyzed machine data, which led him into big data and Hadoop. He now teaches data engineering full time through his academy at LearnDataEngineering.com. Alexey invites him to answer a question he hears often from data scientists, namely how they learn to build data pipelines.

Andreas says companies that started with proofs of concept now need to automate them, which increases demand for engineers. He suggests hiring one data scientist and one engineer early, so the engineer can plan how a prototype becomes a product. He says the hard part for a data scientist is designing the platform and choosing a few tools instead of twenty, since each extra tool adds maintenance work.

In his model, a pipeline has five parts, namely ingestion, a buffer such as Kafka or Kinesis, processing, storage and visualization. Streaming reacts to events as they arrive, while batch processing stores data first and handles it later. He advises data scientists who know Python to stay with it, using Flask or FastAPI for APIs rather than switching to Java or Scala. Processing can run on Spark, Flink, Lambda functions, AWS Glue, or a Python script in a Docker container.

Using a car price prediction example on AWS, they discuss moving from a notebook to production. Andreas suggests putting the notebook code in a Docker container, scheduling it to retrain regularly, and storing the model in S3. For simple schedules, CloudWatch can trigger a Lambda function that starts the container, without a full framework like Airflow. For chained SQL steps, Andreas suggests a simple message queue first, and moving to Airflow once logging and monitoring become necessary. His advice is to build something simple first and add complexity later.

To learn, Andreas recommends reading the documentation of a tool, searching for tutorials that match your goal, and testing it in a development environment. For an internship, he says Python, SQL and basic networking are enough, while a junior data engineer role usually needs experience on a platform, most often AWS. Hadoop is declining, though cloud platforms offer similar functions. He advises small Kaggle datasets and public documentation of projects on GitHub. On a zero budget, he suggests building a local proof of concept and putting a revenue estimate on it, because stakeholders respond to money.

Chapters

  1. 1:56 Episode Introduction & Andreas Kretz — "Plumber of Data Science" 1 min
  2. 3:19 Guest Bio: Andreas’s path from software to big data and data engineering 2 min
  3. 5:43 Market Trend: Why data engineering demand is rising 3 min
  4. 8:46 Hiring Strategy: Hire a data scientist and engineer early 1 min
  5. 9:47 Data Scientist Growth: From notebooks to production pipelines 2 min
  6. 12:03 Operational Risk: Why using many tools breaks operations 1 min
  7. 13:25 Data Pipeline Anatomy: Ingestion, buffer, processing, storage, visualization 2 min
  8. 15:11 Ingestion Explained: Events, message queues (Kafka, Kinesis) 2 min
  9. 16:51 Processing Modes: Streaming vs. batch processing 1 min
  10. 18:14 One-Person Feasibility: Tooling, cloud vs on-prem, and schema design 3 min
  11. 21:05 Practical Stack for Scientists: Python, Docker, Flask/FastAPI for prototypes 2 min
  12. 22:36 Processing Frameworks Overview: Spark, Flink, Lambda, Glue, Docker jobs 1 min
  13. 24:04 Data Transformation: Role of SQL and dataframe processing 2 min
  14. 25:36 AWS Example: Parquet on S3 and processing options 2 min
  15. 27:22 Case Study: Car price prediction — data sources and architecture 4 min
  16. 31:33 Inference Strategy: Live API calls versus precomputed predictions 3 min
  17. 34:16 Productionizing Notebooks: Dockerized training and model storage on S3 2 min
  18. 35:46 Scheduling Options: Airflow vs CloudWatch/Lambda vs simple schedulers 2 min
  19. 37:53 Model Serving: SageMaker endpoints and cost trade-offs 2 min
  20. 40:01 Orchestration Patterns: Message queues for job sequencing 1 min
  21. 41:06 Start Simple: Iterate from Lambda/queues to Airflow/Kubernetes 2 min
  22. 43:05 Learning DevOps: Pick tools, read docs, and practice by doing 2 min
  23. 45:31 Tool Selection: Use docs and tutorials to validate choices 3 min
  24. 48:36 Early-Career Skills: Python, SQL, basic networking; AWS and OSS basics 3 min
  25. 51:14 Hadoop Today: Cloud replaces Hadoop for many, but Hadoop persists in legacy 1 min
  26. 52:21 LearnDataEngineering Academy: Curriculum, capstones, and resources 3 min
  27. 54:52 Hands-on Projects: Build an e-commerce pipeline; use Kaggle datasets 3 min
  28. 57:33 Learning Advice: Avoid huge datasets; start small and iterate 1 min
  29. 58:56 Convincing Stakeholders: Build a $0 proof-of-concept and quantify ROI 3 min
  30. 1:02:05 Find Andreas & Resources: LearnDataEngineering, YouTube, Telegram 1 min

Andreas Kretz Data Engineer

Andreas Kretz is a Data Engineer who calls himself the plumber of data science. He writes and talks about the platform architecture, tools, and techniques used to build modern data science platforms, covering everything from data pipelines and streaming with Kafka to deploying machine learning on AWS. Through his project Team Data Science, he helps engineers understand how the pieces of a data platform fit together.

Topics in this episode

The wiki pages this conversation is filed under, the strongest first.

Data Engineering

Data engineering across pipelines, platforms, data quality, role boundaries, business enablement, and the shift toward AI-ready data systems.

Machine Learning

Machine learning as applied modeling, evaluation, production design, monitoring, roles, and business tradeoffs.

Production

Production for data, ML, and AI systems, covering deployment, monitoring, reliability, ownership, and cost.

Tools

How data and ML teams choose and sustain tools across data engineering, MLOps, search, RAG, open source, and developer experience.

AI Infrastructure Ownership

Cloud, on-prem, GPU, privacy, and operations tradeoffs that shape who pays for, runs, and controls AI infrastructure.

Apache Airflow

Apache Airflow for DAGs, operators, task instances, scheduler/executor behavior, metadata state, Docker Compose setup, and shared deployments.

Batch vs Streaming

Batch and streaming compared through latency, operations, contracts, cost, ML serving, and product tradeoffs.

Data Engineering Certification

Decide whether a data engineering certificate is worth it, and turn certificate study into portfolio proof that employers can review.

Data Engineering Portfolio

Build portfolio projects that show useful pipelines, SQL and Python depth, modeling, orchestration, quality checks, and operating judgment.

Data Engineering Tools

A practical guide to choosing data engineering tools across ingestion, orchestration, storage, transformation, quality, governance, and activation.

Data Pipelines

Guide to data pipelines: ingestion, transformation, publication, orchestration, testing, recovery, CDC, and ML handoffs.

DuckDB

DuckDB for local OLAP, Parquet analytics, lean discovery, low-cost batch jobs, and lakehouse experiments.

How to Build Data Pipelines

Build data pipelines from consumer needs through ingestion, modeling, orchestration, testing, observability, and activation.

ML Infrastructure

Training, feature/data/model pipelines, registries, batch and online serving, monitoring, and platform foundations for production machine learning systems.

Machine Learning System Design

ML system design as a production reference for requirements, labels, feature paths, evaluation, serving, monitoring, fallbacks, and ownership.

Machine Learning for Business

How businesses choose ML use cases, compare baselines, test small-budget options, define business models, and plan adoption and ownership.

Notebook Production Workflow

A workflow for turning AI or ML notebooks into production systems with decisions, reusable code, evaluation, serving, and monitoring.

Notebook to Production AI

How notebook experiments become reliable AI systems through product framing, evaluation, monitoring, and ownership.

Orchestration

Orchestration as run coordination across workflow engines, CI jobs, cloud schedulers, managed batch services, analytics refreshes, and ML pipelines.

Streaming

Event streaming for real-time pipelines, Kafka architectures, schema management, feature stores, fraud systems, and search.

Related books

Fundamentals of Data Engineering

31 questions answered

Data engineering has grown rapidly in the past decade, leaving many software engineers, data scientists, and analysts looking for a comprehensive view of this practice. With this practical book, you'll learn how to plan and build systems to serve the needs of your organization and customers by evaluating the best technologies available through the framework of the data engineering lifecycle.

Joe Reis Matthew Housley

Advanced Algorithms and Data Structures

29 questions answered

As a software engineer, you’ll encounter countless programming challenges that initially seem confusing, difficult, or even impossible. Don’t despair! Many of these “new” problems already have well-established solutions. Advanced Algorithms and Data Structures teaches you powerful approaches to a wide range of tricky coding challenges that you can adapt and apply to your own applications. Providing a balanced blend of classic, advanced, and new algorithms, this practical guide upgrades your programming toolbox with new perspectives and hands-on techniques.

Marcello La Rocca

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.

Want to learn more about our community?

How it started, who's here, and everything that goes on here: courses, events, Slack, and more.

About DataTalks.Club