gruf icon indicating copy to clipboard operation
gruf copied to clipboard

Add Rails Integration

Open chizhanov opened this issue 3 years ago • 1 comments
trafficstars

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.

chizhanov avatar Jul 10 '22 06:07 chizhanov

@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.

splittingred avatar Jul 20 '22 18:07 splittingred