---
title: "Unlocking Real-time Predictions with Shopify's Machine Learning Platform"
description: "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."
url: "https://swe.quest/articles/unlocking-real-time-predictions-with-shopify-s-machine-learning-platform-f4124fdd81e9cd3f"
canonical: "https://shopify.engineering/shopifys-machine-learning-platform-real-time-predictions"
source: "Shopify Engineering"
published: "2023-03-10"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["ml-platform","inference","kubernetes","deployment","python"]
---

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

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2023-03-10, 13 min read, Case study. Original: [https://shopify.engineering/shopifys-machine-learning-platform-real-time-predictions](https://shopify.engineering/shopifys-machine-learning-platform-real-time-predictions)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- ML model serving basics ([easy posts on Machine learning](https://swe.quest/tags/machine-learning.md?difficulty=easy))
- Kubernetes basics ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- Python web APIs ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))

## Keywords

Merlin, MLServer, FastAPI, Ray, Comet ML, Feast, Buildkite, Google Kubernetes Engine

## Related posts

- [The Magic of Merlin: Shopify's New Machine Learning Platform](https://swe.quest/articles/the-magic-of-merlin-shopify-s-new-machine-learning-platform-f17a810670837d2b.md): Shopify Engineering · 2022-04-06 · Medium · 13 min read · ML platforms, Kubernetes, Model training, Python
  Merlin is Shopify's redesigned ML platform built on open source tools.
- [Shopify's Playbook for Scaling Machine Learning](https://swe.quest/articles/shopify-s-playbook-for-scaling-machine-learning-01ef31091481dd96.md): Shopify Engineering · 2022-02-11 · Easy · 12 min read · ML platforms, Machine learning, Threat detection, E-commerce
  Shopify's approach to scaling machine learning grew out of its first ML product, an order fraud detector that replaced a rule-based system with a high false-positive rate.
- [How Doppel eliminated ML infrastructure tax with Modal](https://swe.quest/articles/how-doppel-eliminated-ml-infrastructure-tax-with-modal-6cfb61f19c711d02.md): Modal · 2026-03-25 · Medium · 5 min read · ML platforms, Serverless, Inference & serving, Model training, Threat detection
  Doppel, which builds ML models to detect social engineering attacks, moved much of its training and inference from sequential experiments and GCP Cloud Run to Modal.
- [How Shopify turns open models into task experts](https://swe.quest/articles/how-shopify-turns-open-models-into-task-experts-a2ba67e222beb92b.md): Shopify Engineering · 2026-10-21 · Hard · 5 min read · Model training, Inference & serving, Evaluation, AI agents, Cost optimization
  Shopify's Sidekick keeps a frontier model for merchant conversation and planning but offloads token-heavy subagent work, such as GraphQL query generation, to open models it post-trains and self-hosts.
- [Deploy Triton Inference Server on Railway](https://swe.quest/articles/deploy-triton-inference-server-on-railway-ef04464cb6f25df0.md): Railway · 2024-12-13 · Medium · 10 min read · Inference & serving, ML platforms, Deployment, Python
  NVIDIA Triton Inference Server can serve CPU-friendly ML models on Railway, with MinIO as an S3-compatible model repository.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
