4 ms·
Pure server rendering will work for webapp. But if one day the client decides to have iOS/Android apps, the backend will need to be updated to provide Rest APIs
by CalmStorm 10y ago
Pure server rendering will work for webapp. But if one day the client decides to have iOS/Android apps, the backend will need to be updated to provide Rest APIs. It is possible to do, just additional work. SPA with client side JS will not have this problem.
- spriggan3 10y ago> the backend will need to be updated to provide Rest APIs In this day and age of micro-servicing everything, the backend should have a front-end for webpages that uses the same Rest API as mobile devices.
- wtbob 10y ago> Pure server rendering will work for webapp. But if one day the client decides to have iOS/Android apps, the backend will need to be updated to provide Rest APIs. Why not make the REST API the rendered API? Just render state to HTML instead of to JSON or whatever. > SPA with client side JS will not have this problem. Won't it? If the SPA wasn't designed to be RESTful, trying to graft a REST interface onto the backend will be a horrid exercise (albeit an opportunity for Learning).