Spinning up micro-services using Ruby/Kafka
summary
Argues a concrete pattern for splitting a Rails monolith: centralize event publishing in a model concern publisher that attaches metadata and serializers, send events to Apache Kafka, and consume them with Karafka + Sidekiq bridge into thin controllers. Implements a notification microservice that reads user-created events and sends a welcome SMS flow using phone number from the message. Provides a live signup demo showing Kafka messages, Sidekiq workers and controller logs — the example runs end to end locally.
AI-written summary · about
chapters (6)
- 0:00The challenges of monoliths
- 1:20Decoupling with events
- 3:38Introducing Apache Kafka
- 5:20Implementing producers
- 7:52Processing with consumers
- 8:58Live demo and conclusion
related talks
11mSpinning up micro-services using Ruby/Kafka
35mApplying microservices patterns to a modular monolith
31mEvent Streaming on Rails
27mScaling a Rails Monolith w/Event Driven Microservices
38mEffective Data Synchronization between Rails Microservices
27mEvent Streaming Patterns for Ruby Services
33mMicroservices, Events, and Breaking the Data Monolith with Kafka
48mBuilding a Microservice Application Using Kafka and Django
