Web Architecture: Server-Side Render or Client Side Render?
(building in construction)
A brief of history
Server Side Render (SSR)
Client-Side Render (CSR)
A combination of both worlds
Good news! If you are thinking if there’s a way to use both depending on your solution, yes! You can mix SSR with CSR, and if you keep in mind a good cache strategy, like render the first time on the server and cache its content so later you leave the rest for the client-side render you can improve your performance. This can be seen using the ‘app shell’ architecture where the website loads a minimal user interface as soon as possible and then uses the cache to make the content available offline next time the user visits the page. This is a common concept applied to Progressive Web Apps.
As usual, one solution doesn’t fit all. It’s important to check which kind of data you need to retrieve and listen to your main boss: the user!
By Laura Morinigo on June 9, 2020.