Replies: 1 comment
-
Hi Tyler, These are great questions. Point by point below.
More on decoupling the Django process and the React processThis is actually really close. In fact, it also affects Windows support: #188. All that really needs to happen is to change the In renderer.py, currently: response = session.post(f"http+unix://{socket}", headers=headers, data=data) You can hack it together manually and basically start the renderer separately in another window / tmux tab. Then maybe we can look into promoting this concept for those that want it. I don't see a ton of value for most deployments, but at least we'd get Windows support. |
Beta Was this translation helpful? Give feedback.
-
Hi @silviogutierrez, I really love the design of reactivated and am trying to fully understand how it works. I think I have a surface-level understanding of the renderer: a ReactDOMServer fronted by a nodejs http server process, which is spawned by the django process.
The "API Protocol" for that ReactDOMServer appears to be a json
{context, props}
object.So far, I had a few questions I was hoping you might be able to answer:
renderer_process
process does not appear to be "supervised". If it crashes, will the django process attempt to communicate with the now-non-existent server, and encounter unexpected errors (i.e. a full restart of the django server will be required)?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions