DjangoCon US 2024: Choosing Wisely: SPA vs. HTMX for Your Next Web Project with Chris May

Channel:
Subscribers:
42,500
Published on ● Video Link: https://www.youtube.com/watch?v=JeR6Lv2UoBg



Duration: 0:00
92 views
1


Follow DjangoCon US πŸ‘‡
https://fosstodon.org/@djangocon
https://x.com/djangocon

Follow DEFNA πŸ‘‡
https://www.defna.org/


Video Production by Confreaks
Follow Confreaks πŸ‘‡
https://confreaks.com/
https://x.com/confreaks
https://confreaks.bsky.social/ Follow DjangoCon US πŸ‘‡
https://fosstodon.org/@djangocon
https://x.com/djangocon

Follow DEFNA πŸ‘‡
https://www.defna.org/


Video Production by Confreaks
Follow Confreaks πŸ‘‡
https://confreaks.com/
https://x.com/confreaks
https://confreaks.bsky.social/ As web developers, we want to select the right architecture pattern for our projects. Web applications are inherently complex, and your choice will affect how you manage that complexity.

Choosing a SPA pattern offers rich user experiences with rich interactivity and navigational transitions, but it also introduces complexity in state management, development cost, maintenance, security, and performance.

On the other hand, server-rendered applications have been around for decades and have, until recently, struggled to match the user experience of SPAs. However, thanks to the evolution of browser standards and a crop of lightweight JavaScript frameworks, server-rendered apps have caught up and are once again a compelling option.

In this talk, we'll delve into the factors influencing the choice between SPAs and server-rendered apps. We'll discuss considerations such as:

State Management: Your choices affect how you'll need to manage the state of today's data-rich apps.
User Experience Requirements: Assess the application's level of interactivity and real-time updates and how well each pattern performs.
Performance and Scalability: Understanding the impact of page load times, network latency, server resources, and client resources on the application's performance.
Project Constraints: Consider time, budget, and infrastructure limitations that may influence the choice of architecture pattern.
Development Team Expertise: Evaluating the team's familiarity with JavaScript frameworks and server-side rendering.
Through practical examples and case studies, we'll demonstrate how to evaluate these factors and select the most appropriate architecture pattern for a given project. Whether you're building a content-driven website, a real-time collaboration platform, or an enterprise application, this talk will provide valuable insights to help you choose between SPAs and server-rendered apps to deliver the best possible user and developer experience.

Key Points
Understand state management in today's data-rich applications.
Explain how the microservice pattern affects pattern choice.
Practical guidelines and decision-making frameworks for choosing between SPAs, HTMX, and AlpineJS based on real-world scenarios.
Case studies and examples illustrating the application of each architecture pattern in different types of web applications.
Tips and best practices for optimizing performance, maintaining code quality, and ensuring scalability.
By the end of this talk, attendees can confidently choose when to use a SPA or server-rendered pattern based on their project's needs and constraints. They will identify the trade-offs between complexity, performance, and user experience, enabling them to deliver high-quality web applications efficiently and effectively.


This talk was presented at: https://2024.djangocon.us/talks/choos...


LINKS:
Follow Chris May πŸ‘‡
On Mastodon: https://fosstodon.org/@_chrismay
On X: https://x.com/_chrismay
Website: https://everydaysuperpowers.dev/


Follow DjangoCon US πŸ‘‡
https://fosstodon.org/@djangocon
https://x.com/djangocon


Follow DEFNA πŸ‘‡
https://www.defna.org/


Video Production by Confreaks
Follow Confreaks πŸ‘‡
https://confreaks.com/
https://x.com/confreaks
https://confreaks.bsky.social/ Follow DjangoCon US πŸ‘‡
https://fosstodon.org/@djangocon
https://x.com/djangocon


Follow DEFNA πŸ‘‡
https://www.defna.org/


Video Production by Confreaks
Follow Confreaks πŸ‘‡
https://confreaks.com/
https://x.com/confreaks
https://confreaks.bsky.social/




Other Videos By Confreaks


2025-03-08DjangoCon US 2024: How to design and implement extensible software with plugins with Simon Willison
2025-03-07DjangoCon US 2024: Lightning Talks (Tuesday) with Andrew Mshar
2025-03-06DjangoCon US 2024: Django: the web framework that changed my life with Sage Abdullah
2025-03-06DjangoCon US 2024: Keynote - How To Be A Developer and Other Lies We Tell Ourselves with Mario Munoz
2025-03-05DjangoCon US 2024: Product 101 for Techies and Tech Teams with Amanda Savluchinske
2025-03-05DjangoCon US 2024: Opening Remarks (Tuesday) with Velda Kiara
2025-03-04DjangoCon US 2024: Troubleshooting is a Lifestyle 😎 with Jack Linke
2025-03-04DjangoCon US 2024: A Related Matter: Optimizing your webapp by using ... with Christopher Adams
2025-03-03DjangoCon US 2024: Lightning Talks (Monday) with Andrew Mshar
2025-03-02DjangoCon US 2024: Opening Remarks (Monday) with Peter Grandstaff
2025-03-02DjangoCon US 2024: Choosing Wisely: SPA vs. HTMX for Your Next Web Project with Chris May
2025-03-01DjangoCon US 2024 - Orientation with Kojo Idrissa
2025-02-28Desired State Configuration (DSC) Version 3 by Michael Greene
2025-02-27Mastering the Microsoft Graph PowerShell by Merill Fernando
2025-02-26Private Galleries by Sydney Smith
2025-02-26Rapidly and securely manage your resources with Azure Cloud Shell by Jason Helmick, Steven Judd
2025-02-26Detecting Workload Anomalies with Prometheus and Machine Learning by Anthony Nocentino
2025-02-25Improving Your Attributes by James Ruskin
2025-02-25WinRM vs. OpenSSH: A Showdown for PowerShell Remoting by Paul Broadwith
2025-02-25Mastering PowerShell: A hands-on lab working with APIs Devin Rich
2025-02-24Redfish/Swordfish: The Opensource Protocol for Managing Multi-Vendor Servers... by Chris Lionetti