gruf
gruf copied to clipboard
Add Rails Integration
What? Why?
Hi. I added integration with Rails(since 6.1) based on AnyCable.
Now there is no need to call bundle exec gruf.
I had to change the structure of the startup logic a lot, but I hope I didn't break anything.
How was it tested?
For testing, I used a demo project and tests.
@IlyaChizhanov Thanks for the suggestion! I'm a bit concerned with doing this, as this changes the core operating model of gruf, and runs it in a way separate from its original intent. This would be a breaking (major) change, and I'd rather keep gruf separate from the runtime model of rails.
That said, this sounds like an excellent candidate for a gruf-rails gem, which could offer an alternative operating model, one more embedded like ActionCable or other systems. I'd take that path instead.