-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
In trying to define where to use Motion/streamline our application, we're trying to change our custom ActionCable adoption to a motion one. We've run into this possible out-of-scope use case:
I have a "slide" that gets updated centrally and is broadcasted from there to all clients in the "room". As of now, we render the html to string and broadcast it to the clients. We also cache the html to be able to render later (ex. for a client upon page reload).
I see three options to do the same with Motion, but each seemingly having severe drawbacks:
- use motion to always read the cache key directly: that would mean we need to fetch the cache for each client when a new slide is rendered.
- broadcast the rendered html: that would solve the cache fetching problem, but would put all the html in the state
- keep the state small (something like a slide id for example) and rerender for each client: that would exhaust server resources
Is Motion just not the solution here? Or did I miss a solution that may perform better?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels