Kafka Producer Pipeline for Ruby on Rails - Shopify
Jul 22, 2014

Summary
This post details the initial implementation of a Kafka producer pipeline for Ruby on Rails applications. It describes the challenges of integrating Kafka into a Ruby/Go ecosystem, the decision to avoid direct Ruby-Kafka links due to operational concerns and lack of mature libraries, and the use of SysV message queues as a reliable buffer between Rails and a Go Kafka producer. It also covers the subsequent adaptation to Docker by introducing a TCP-based proxy to communicate with the host-level Kafka producer, avoiding per-container producers.
More from the Data Store Selection and Usage trail
- We replaced Redis with MySQL for inventory reservations—and it scaled (2026) - Shopify
- Mitigating Deadlocks in high concurrency environments - Shopify
- Safely Adding NOT NULL Columns to Your Database Tables - Shopify
- Double Entry Transition Tables: How We Track State Changes At Shopify - Shopify
- Shopify’s Unique Data Science Hierarchy Of Needs - Shopify