Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Zalando Engineering 8 min read Case study mediumAdept

Zalando's Machine Learning Platform

Zalando's ML platform takes ideas from experimentation in a hosted JupyterHub (Datalab), Databricks and a GPU HPC cluster to production pipelines orchestrated by AWS Step Functions. Pipelines are written in zflow, an internal typed Python DSL that uses AWS CDK to generate CloudFormation templates, which are committed to git and deployed by Zalando's Continuous Delivery Platform. Pipeline stages call Databricks jobs and SageMaker training, batch transform and endpoints. Executions, metrics and model cards are tracked in a Backstage-based ML portal, and central teams supporting tooling and consulting complement ML expertise distributed across product teams.

Related posts

  • The Magic of Merlin: Shopify's New Machine Learning Platform

    Shopify Engineering mediumAdept

    Merlin is Shopify's redesigned ML platform built on open source tools. It uses Ray clusters running on Kubernetes as short-lived, per-use-case "Merlin Workspaces", and "Merlin Projects" are Docker images with isolated Python environments built through CI/CD. Data scientists prototype from JupyterHub through the Ray Client, then productionize by scheduling Airflow DAGs that create a workspace, run the job and tear it down, with Datadog and Splunk for monitoring. Onboarding the product categorization model took few code changes: Ray Train distributed TensorFlow training, and Ray ActorPool distributed multi-step batch inference.

  • Training Orchestrator: Unifying Model Training at Yelp

    Yelp Engineering mediumAdept

    Yelp's Training Orchestrator replaces per-team monolithic Spark training scripts with a declarative, configuration-driven framework. Pipelines are composed of typed steps whose dependencies form a DAG executed in topological order. Pydantic configs validate parameters and step input/output schemas up front, and injected Spark/MLflow context lets the same pipeline run locally, in Jupyter or in production. The payoff is local runs and unit-testable steps, config errors caught in seconds instead of hours into training, automatic MLflow logging of full configs for reproducibility, and swappable settings-plus-function pairs for reuse across batches.

  • Building a dynamic inventory optimisation system: A deep dive

    Zalando Engineering mediumAdept

    Zalando's ZEOS builds replenishment recommendations by minimising a cost function that combines storage, lost sales, overstock, operations and inbound costs. Probabilistic demand forecasts feed a Monte Carlo simulation engine with gradient-free black-box optimisers. The weekly forecasting pipeline runs LightGBM through Nixtla's MLForecast with conformal inference, does pre-processing in PySpark on Databricks and feature transforms on SageMaker, and covers 5 million SKUs over about 3 years of history in under 2 hours. The optimisation service shares features via SageMaker Feature Store (online lookups at 10–20ms per SKU, S3-backed offline store). It serves daily batch transform jobs plus an interactive SQS/Lambda path for partner setting changes, keeping both paths consistent.

  • Tangle: An open-source ML experimentation platform built at Shopify scale

    Shopify Engineering mediumAdept

    Tangle is Shopify's newly open-sourced ML experimentation platform: users build pipelines visually as DAGs of containerized CLI components defined in YAML, so components can be written in any language and run on any cloud or locally. Its central design choice is content-based caching. Downstream tasks are reused whenever upstream output hashes are unchanged, and cached results are shared globally across users, including executions that are still running. Shopify reports that a 10-hour pipeline can finish in 20 minutes when only one component changes, and that the platform has saved over a year of compute. Other design choices include file-path data passing abstracted over GCS/S3, optional unenforced types, and a multi-tenant HuggingFace deployment that uses per-tenant SQLite databases.

  • Unlocking Real-time Predictions with Shopify's Machine Learning Platform

    Shopify Engineering mediumAdept

    Shopify extended its Ray-based Merlin ML platform with online inference, running each real-time model as a dedicated service in its own namespace on GKE that loads models from the Comet ML registry and can read features from the Feast-based Pano store. The serving layer is written in Python and offers three tiers: no-code MLServer configs, low-code custom MLServer classes, and fully custom FastAPI services, all scaffolded by a Merlin CLI from cookiecutter templates. Users test serving layers in short-lived Merlin Workspaces, then deploy through Shopify's standard Services DB, Buildkite and Shipit pipelines with separate staging and production configs for autoscaling and resource tuning.

The quest for software engineering knowledge.

Look:
Layout: