4 ms·
I really respect the hard work going in to the evolution of Rails, but it does feel like some new features should be considered as Gems. The hardest part of ma
by mtkd 14y ago
I really respect the hard work going in to the evolution of Rails, but it does feel like some new features should be considered as Gems.
The hardest part of managing mature software is keeping it lean.
- thibaut_barrere 14y agoStreaming looks like a natural evolution to me, to gradually send JSON data back to the client etc for instance. I don't think this is something that could be done easily as a gem (at least not without a serious dose of unstable monkey-patching).
- jeltz 14y agoThe lightweight framework Sinatra has had streaming for a some time now, and if it is not too heavy for Sinatra it should not be too heavy for rails. Rails is way larger than Sinatra.
- masklinn 14y ago> The lightweight framework Sinatra has had streaming for a some time now Rack itself has response streaming support[0]. As a result, even before Sinatra 1.3 and the `stream` helper method you could stream responses in Sinatra. [0] since pretty much forever ago: https://github.com/rack/rack/commit/53e299724b9173efe50e9afc372c1cb7ca02c40f https://github.com/rack/rack/commit/53e299724b9173efe50e9afc...
- jeltz 14y agoYeah, I have implemented streaming myself once for a rack app. It was rather simple to implement and has worked stably in production for over two years now.