-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature idea: Render async with ActiveJob & ActionCable #111
Labels
Comments
mnort9
changed the title
Feature idea: Render async with ActionJob & ActionCable
Feature idea: Render async with ActiveJob & ActionCable
Apr 7, 2020
Hey, @mnort9! Thanks for submitting an issue, the idea sounds great. I was thinking of this some time ago myself but never wound up drafting a PR. Let me know if this is something you'd like to participate in, I'd be more than glad to help! Also, if others are interested in seeing this feature, react with 👍 |
This would be awesome, and it could use the new StimulusReflex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rendering with ActiveJob & ActionCable would allow for long performing background jobs to push view content when finished.
Rough Flow:
Use Case:
We have some long running queries in our admin interface around reporting. Since this is internal, it's not that big of a deal that a response takes 10 seconds, especially since it's only used a few times a day. We'd rather focus dev optimization effort on the customer facing part of the application.
However, this request can cause timeouts for the rest of the application, especially if requests are simultaneous. Pushing the processing to the background and rendering when ready would allow it be truly non-blocking for other requests.
The text was updated successfully, but these errors were encountered: