-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Discussion: Full Stack Redux #313
Comments
Some possibilities:
A very similar architecture is what https://github.com/share/ShareJS uses to provide multi-user manipulation of shared state. There are probably important lessons and shareable code there. It would also be simple to embed ShareJS operations into actions for having a subtree of the state shared. |
Preliminary conclusions:
|
I know @elierotenberg has done a lot of experimentation with this. See his work on Nexus Flux. Only the needed state should be synced. |
I wrote a detailed blog on Advantage of having Flux on WebWorker. Flux on Server or Webworker work exactly same. communication differs. |
I made my first implementation of "Flux inside Webworkers" using "Bridge API" - Bridge API can load your code into webworker - https://github.com/nsisodiya/bl-layer-loader . Its a Communication API. Bridge API load Flux inside Local UI thread for the Browsers which do not support WebWorkers. |
Bridge API has Two Adapter -
|
Could be related to the Netflix Falcor discussion: #560 |
I started a project called Cumulo exploring similar ideas. The Web Servers are to maintain the store(like an in-memory database), all clients are synced with the server. In Cumulo, an app is divided into some parts: Database, Store, View, Action.
The data flow is like:
Considering the networks it's like
I name the function from Database to Store We already knew React is using diff/patch to keep View consistent to its store. And in Cumulo I'm trying to perform JSON diff/patch to keep Stores synced with Database. It's like saying:
Cumulo is currently in very early stage, you may see here if interested: https://github.com/Cumulo By the way my current problems are dealing with database backend(raw JSON by now) and merge operation sequences in various orders(due to network delay), and diffing data could be slow(even on immutable data). |
I'm closing this as inactive. |
Yup, I'm working on a proposal of what a server would look like given a On Thu, Sep 24, 2015, 14:44 Dan Abramov [email protected] wrote:
Wout. |
I would love this from what i understand.. |
WiP: https://gist.github.com/wmertens/a408e15a08301081ebad but you get the idea |
Concept: Redux actions are sent to the web server, over some channel, likely a websocket. The server can also send actions to the browser.
The text was updated successfully, but these errors were encountered: