News for hackers. Stuff that matters.
Re:React.Js: Achieving 20ms server response time with Server... by andrewingram on Monday October 17, 2016 @03:10PM (#12728267)
150ms is pretty standard server-side rendering React for a relatively simple page, but it scales pretty predictably with the complexity of the component tree. Obviously there are some caching strategies available, but I think the only real solution is going to come from serious investment in the problem from the React side. I can't see the core devs tackling it, because Facebook doesn't require it, but maybe the community can step in.
Re:React.Js: Achieving 20ms server response time with Server... by flukus on Tuesday October 18, 2016 @03:03AM (#12732649)
Really? Because that is absolutely awful compared to other tech stacks, even other tech stacks from more than a decade ago.
Re:React.Js: Achieving 20ms server response time with Server... by andrewingram on Tuesday October 18, 2016 @05:41AM (#12733095)
That's because React isn't designed for server-rendering. It's able to do it, but if you expect the same performance as as traditional template engines you're going to have a bad time.
Re:React.Js: Achieving 20ms server response time with Server... by flukus on Tuesday October 18, 2016 @05:20PM (#12738822)
So why are people using server side react then? Is it any faster client side, because that would also be very slow?
Re:React.Js: Achieving 20ms server response time with Server... by mercer on Wednesday October 19, 2016 @04:56PM (#12747589)
One benefit is that you can render server-side and seamlessly take over on the client-side without needing a re-render.

Another benefit is simply React's component-based approach itself. I once went as far as using React for wordpress templating just because I prefer its approach to the standard WP <?php echo $blah ?> shit. I wouldn't recommend that to others though.

Re:React.Js: Achieving 20ms server response time with Server... by tracker1 on Monday October 17, 2016 @08:07PM (#12730969)
I feel that the tooling that Walmart Labs released (electrode) fills a lot of this void. The TL;DR of the article is really, "cache effectively." Which is true of so many things at scale.
Re:React.Js: Achieving 20ms server response time with Server... by andrewingram on Tuesday October 18, 2016 @05:44AM (#12733106)
Yes and no. I've been trying out their tools and whilst they do help a bit, the mileage varies and integration is quite invasive if you want decent results.
Re:React.Js: Achieving 20ms server response time with Server... by tracker1 on Tuesday October 18, 2016 @07:23AM (#12733453)
Fair enough... but moving past bottlenecks with any platform tends to be so.