In Rails, is it possible to send a response back to the browser in two parts? The first part doesn't need to be anything specific (reason explained below). The second part of the response would be the full normal response such as a view in .html.erb format.
The reason that I'm looking to do this is that Heroku requires a response to be sent back to the browser within 30 seconds, however it's taking longer than 30 seconds for my app to perform several dozen calculations on 1.2 million records.
The Heroku documentation indicates that this may be possible with some platforms (but is it possible with Rails?): https://devcenter.heroku.com/articles/limits
HTTP requests have an initial 30 second window in which the web process must return response data (either the completed response or some amount of response data to indicate that the process is active). Processes that do not send response data within the initial 30-second window will see an H12 error in their logs.
P.S.- I recognize that there may be better platforms than Rails to build this kind of data-intensive app, but I'm building it in Rails because that's what I know.
Thanks!