rubytalk.org
Why SPAs are usually a waste of time/money - ruby-talk
Excerpt
an entire suite of apps in the wild are doing it wrong. It also entirely disregards several of the benefits of SPAs. Having a CDN deliver your frontend can save you money, time, and performance. Separating your API from your frontend can push forward the timeline of opening up your API so … quality of frontend development these days than it does a discussion of the tradeoffs. There is more complexity there for sure, but there are many benefits not discussed. Also just saying anything is a bad architectural choice 99% of the time is wrong. Everything has to come with context. ... etc. Testing: the test setup is more complicated because we need to make the backend and frontend talk to each other Testing the backend api should be independent from the SPA. While they connect with each other you can test all your API endpoints from your backend. SPAs have their own tests which can make API calls.