by jameslk · 6y ago · 0 comments
Of course all these things are really trade-offs. It's arguably much easier just to throw together some PHP and stick it on some LAMP shared hosting if that meets your needs. Or if you're more comfortable with server side languages, you'll be a fish out of water. If you don't know why you would need it, you probably don't.
All the transformation & orchestration of your content has to happen in your app.
If you have one backend and one app, that's not necessarily a bad thing, because you have to do that work somewhere, but if you have multiple apps (perhaps by multiple teams) that all consume the same backend, you start to duplicate a lot of that complexity all along the edge of your system.
Yes, and the punishments will continue until hardware improves. More seriously, this is definitely a big trade-off. That's why page weight has been growing over time and client side metrics haven't been getting much better despite improved hardware and connection speeds. There's no free lunch. As I've mentioned in past comments, now's a great time to be a web performance consultant.
> Also aren't you moving much more data back and forth to do that?
Considering that usually the bulk of the frontend arrives once and then gets cached/runs continuously, I would say generally no. Server side rendering requires the page to be sent in whole on each request, unless you're doing some funky hybrid stuff with partial server rendering.