Tradeoffs of Single Page Applications

Single page applications are becoming increasingly common and for good reasons. Not only are they often more responsive, but they offer a more seamless user experience by changing only part of the screen instead of the entire screen. In addition, they use the client machine to build the page, rather than server resources, can make better use of caching, and can be more responsive to mobile and occasionally connected environments. However, like all technologies, there are tradeoffs. While these applications are often better for the users and for the development team, they do require that you spend a lot more time carefully thinking through how you will mitigate the downsides. Building and deploying these applications well can be significantly more complex than building and deploying an equivalent server-rendered page. This doesn’t mean that you shouldn’t do it, but rather that when you do it, you take care to handle some of the downsides. Single Page Apps are great and are widely considered a sensible default for new websites. While we love to see them, it’s important to know what you are trading off when you are building one. They have a massive number of benefits for many applications, but if you know what you are giving away to get those benefits, you can make better decisions about when to use them. Furthermore, when you do decide to build an SPA, if you address the concerns we’ve listed here, you will almost universally improve the throughput of your entire team and the maintainability of your app over its entire lifetime. Links Join Us On Patreon Level Up Financial Planning Donate to Beej’s Mission Fund Memo: Put “BJ Burns” in Memo

Om Podcasten

Will and BJ first met in college and have been friends ever since. You can tell this through their dynamic conversations. Will bring a wide knowledge base to the conversation through his years of experience as a senior developer and aspiring software architect. Whereas BJ being a journeyman developer is learning as he works in the field. He shares those lessons and more each week. Because of their varied experiences topics range from the technical to the every day life of a software developer. Whether you are just starting out or in the twilight of your career you'll find something useful and informative on Complete Developer Podcast. There are plenty of podcasts out there focused on languages and coding. What we are doing with the Complete Developer Podcast is to also cover the other areas of life as a developer.