"A year with Hanami in production: the Good, the Bad and some Recipes"
summary
One year and a half of Hanami in production powers a REST API with 140 API actions and 400 Trailblazer operations, split into multiple apps and about 50 repositories across six databases (Postgres, Cassandra, Redis, Influx, ClickHouse, etc.). ROM.rb proves too limited so the stack switches to Sequel, keeping repositories as the single place for DB writes while returning Sequel models for reads. Auth starts with JWT then moves to JWE sessions; background jobs use RabbitMQ + Sneakers; WebSockets use AnyCable; Puma + hanami.boot serves production with ~300–400MB for 8 threads.
AI-written summary · about
chapters (28)
- 0:00Introduction and speaker background
- 1:50What is Hanami and its core concepts
- 3:56Why choose Hanami over Rails
- 6:50Challenges of adopting Hanami
- 8:35Building a large Hanami application
- 10:44Integrating Trailblazer with Hanami
- 12:08JWT authentication in Hanami
- 13:33Webpack integration with Hanami
- 14:55Sidekiq and background jobs
- 15:42Repository pattern and ROM.rb struggles
- 17:53Switching to Sequel for repositories
- 20:05Working with multiple databases
- 21:52Dependency injection with dry-container
- 23:20Caching strategies in Hanami
- 24:04Running Hanami in production
- 25:12Custom CLI and deployment challenges
- 26:15Testing strategies and tools
- 27:40Testing controllers and policies
- 28:27WebSockets with AnyCable
- 29:52Service architecture with RabbitMQ
- 30:34Hanami apps and monorepo concept
- 32:45Building a JRuby service with Hanami
- 35:20Future of Hanami and framework evolution
- 37:55Architecture lessons from Hanami
- 41:36When to choose Hanami over Rails
- 44:10Component-based Rails alternatives
- 46:19Summary and final thoughts
- 49:36Q&A session
related talks
01h 07mA year with Hanami in production: the Good, the Bad and some Recipes
42mLessons Learned While Building Hanami
25mHanami - New Ruby Web Framework
42mHanami - New Ruby Web Framework
36mReturn To Simplicity: Architect Hypermedia REST applications using Hanami + HTMX
23mHanami 2: New Framework, New You
27mHanami::API
49mIf I had it to do again
