5 ms·
Don't you have to scale your api too ?
by BoumTAC 5y ago
Don't you have to scale your api too ?
- hunterb123 5y agoYes, but now you have to scale both the data layer logic and view layer logic when doing server side rendering.
- BoumTAC 5y agoSo now it's two times the hassle, two times the money spent
- porker 5y ago99% of the time no one runs into scaling issues and worrying about it is premature optimisation. I have to remind myself that all the time. And no, same hassle, same money spent. Thought about from the start server-side rendered pages are almost as cacheable as API responses will be. If you can't cache you're in for a world of expense at scale whichever way you go.
- beardedetim 5y agoI have (limited) experience scaling long-lived websocket connections and it _sucked_. It is _way_ easier to scale out little Node servers that are "stateless" than it is to ensure that Client A is connected to Socket A. I would much rather scale out my REST/Graph/RPC API instead of having to scale out a WS API.