Skip to content
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

Server Side Rendering v2 #625

Closed
justin808 opened this issue Nov 26, 2016 · 2 comments
Closed

Server Side Rendering v2 #625

justin808 opened this issue Nov 26, 2016 · 2 comments

Comments

@justin808
Copy link
Member

justin808 commented Nov 26, 2016

Currently, we can do server rendering using execJS and mini-racer.

We would like to continue investigations into using a Node.js server to do server rendering.

I'm roughly guessing that we should be using some Express based engine.

We'd like the solution to be:

  1. Easy to implement and deploy.
  2. Easy to scale.
  3. Easy to monitor the performance and determine when to increase scaling.
  4. Caching could be interesting.

Links:

CC: @alexfedoseev @robwise @jtibbertsma @rocLv @martyphee

@udovenko
Copy link
Contributor

I've read rougly through the links. Seems there are two general ways to go: roll out own solution and try to adopt to existing project like react-server or hypernova.

react-server is very opinionated framework that operates page entities: https://react-server.io/docs/guides/writing-pages. And if I understand correctly, it assumes inverse responsibility chain of server rendering comparing to react_on_rails approach: client app requests react-server instance and this instance requests API endpoint (RoR app in our case). I do not see way to integrate it with current react_on_rails architecture. This project looks like possible replacement, not as rendering option. Need to dive deeply in docs to ensure this opinion though.

@justin808
Copy link
Member Author

This is part of "React on Rails Pro". Contact [email protected] for more information on using a Node rendering server. This is in production for https://egghead.io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants