Spinning up micro-services using Ruby/Kafka
summary
Describes moving a large Rails monolith to an event driven design using Apache Kafka and a centralized publisher concern so DB changes become producers instead of scattered callbacks, with Rails concern for producers enforcing metadata and serializers. Uses Karateka + Sidekiq consumer pipeline to register controllers per topic and process messages. Implements a working signup flow publishing to a user_created topic and welcome SMS and demos it locally, claiming development is simple though deployments add operational work.
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
31mEvent Streaming on Rails
35mApplying microservices patterns to a modular monolith
27mScaling a Rails Monolith w/Event Driven Microservices
38mEffective Data Synchronization between Rails Microservices
27mEvent Streaming Patterns for Ruby Services
42mCreating event-driven microservices: the why, how and what
31mEvent driven communication with Kafka on Kubernetes
