-
Notifications
You must be signed in to change notification settings - Fork 2
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
one-container limitation #87
Comments
Just some more thoughts on this... This idea is circling back to some of our original thoughts about splitting the app into the "processing" component and the "visualization" component. It seems to me the processing should happen in the back, not in a session that is tied to a user web session. that would solve this issue. Proposal: The LOLAweb landing page uploads the file, assigns the cache ID (example: The results page checks for the Meanwhile, a separate container with an R process is running a while loop that is constantly looking in /processing This is a very simple job submission cache that has the following advantages:
Disadvantages:
|
Here's some code that actually implements a good chunk of this:
|
@nsheff thanks for checking back in and providing some code to illustrate the idea ... very interesting i've been working through some of the other issues on the i may have missed something in the comments above ... but this would require us to store the region sets (and custom universes, if any) that users submit, correct? |
well -- for about 60 seconds, yes... those can be deleted at the end of the job run (or even after loading them), though. |
I am formalizing this with a new R package that will abstract away the splitting, called shinyDepot |
@nsheff have you seen this post: http://blog.rstudio.com/2018/06/26/shiny-1-1-0/ not sure if this is exactly what you have in mind, but may be useful |
yeah, that's very very similar... I am approaching it in a different way, which is a little more complicated, but more powerful... that will get us part of the way there but for our needs, I think the |
@vpnagraj do you want to take a look and see if you can figure out what I'm trying to do there? This would really open the door to higher performance apps and I think maybe even negate the need for the redis concept, among other advantages... let me know if something is confusing. there's a lot of not-quite-working pseudocode and ideas there but I think it's a good start |
the current implementation has this limitation we've discussed: because a user is linked to a specific container, if I try to run two tabs with LOLAweb at the same time, it doesnt' really work; one is unresponsive while the other is running. this is actually a substantial limitation... is there a way to relax it?
One thought is that if when you click "Run LOLA", instead of doing all the processing there in that session, it just immediately forwarded you to the result page -- which would just display "waiting" until it could find the result. Then we wouldn't need for there to be sessions at all.
I feel this would really improve the user experience.
The text was updated successfully, but these errors were encountered: