Multi page vs Single Page Applications - Which One Is Right For You?!

  Рет қаралды 19,452

James Q Quick

James Q Quick

11 ай бұрын

The Web Development ecosystem just keeps going in a circle. Up until the year or two, Single Page Applications (SPAs) were the default way to be build web apps, BUT now we are getting back to a heavier focus on leveraging the server over the browser when possible. In comes, Multi Page Applications (MPAs).
MPAs typically perform a full page refresh when navigating between pages, submitting forms, etc. Let's compare and contrast SPAs and MPAs and see which one makes the most sense in different scenarios.
Astro Couse - astrocourse.dev/
*DISCORD*
Join the Learn Build Teach Discord Server 💬 - / discord
*STAY IN TOUCH 👋*
Newsletter 🗞 - www.jamesqquick.com/newsletter
Follow me on Twitter 🐦 - / jamesqquick
Check out the Podcast - compressed.fm/
Courses - jamesqquick.com/courses
*QUESTIONS ABOUT MY SETUP*
Check out my Uses page for my VS Code setup, what recording equipment I use, etc. www.jamesqquick.com/uses

Пікірлер: 43
@faifad
@faifad 7 ай бұрын
I was having trouble getting out of the initial hype I felt when learning about SPA and actually make an objective decision on what I would do for my web app. This helped alot thank you!
@aaronholt6595
@aaronholt6595 8 ай бұрын
Really liked this and appreciated the content. Easy to follow so thanks for that. 👌
@christopheanfry2425
@christopheanfry2425 11 ай бұрын
Fantastic explanation!!! As you mentioned it’s clearly the time when island architecture is coming very strong as a developer and user experience, and I have to talk again about fresh which is also amazing as Astro does for static site, but with the ability of the route folder structure of nextjs + the island architecture for dynamic renders or state. Really hard to find our way in this “war” between ssr or csr, with the explosion of react it was the new way to go but it has shown some limits and we go back to ssr with amazing new frameworks like also qwick which is doing a great job with its signals system. That’s all amazing and so interesting and good to have a clear explanation as yours that comforts my thoughts and understandings 👍👍👍
@millennialsdev
@millennialsdev 11 ай бұрын
But in the Spa for example in Vue, we have the Lazy Loading Routes where there is the concept of "Chunk", the js is splitted
@motoboy6666
@motoboy6666 11 ай бұрын
Very clear and great visualisation, thanks dude! 🎉
@levyroth
@levyroth 11 ай бұрын
Very good video, well done!
@21rogerwaters
@21rogerwaters 10 ай бұрын
Great use of visual explanation. Make things very clear =D
@JamesQQuick
@JamesQQuick 10 ай бұрын
Yay! So glad to hear that :)
@wolfson109
@wolfson109 7 ай бұрын
I like to write an MPA in Django and then use Vue for building interactivity inside a page if needed. Nice thing about Django is you can write a combination of templates and REST endpoints for the same set of models. So if I want to have faster initial load I can populate initial data on the server side and then have Vue call the API whenever the data needs to be updated.
@darana1142
@darana1142 2 ай бұрын
React does this too now with server components.
@MillerTimeVoiceOver
@MillerTimeVoiceOver 8 ай бұрын
Very helpful!!
@marvellousruni8475
@marvellousruni8475 11 ай бұрын
Thanks for this👍
@JamesQQuick
@JamesQQuick 11 ай бұрын
Glad you enjoyed it!
@houseandhobby6971
@houseandhobby6971 2 ай бұрын
A key factor in the decision of whether to go single-page is whether it is a "site", or is it an "app". There is a difference. A site needs seo more than an app. An app can be supplemented with a multi-page site that features the app. Also, with spa permissions gateways can and should be done on the server side; session management enables this to be accomplished.
@chaitu6081
@chaitu6081 9 ай бұрын
A very much needed intro. Resolved many confusions that I have. Thank you very much for the video.
@adrianasilveira4561
@adrianasilveira4561 7 ай бұрын
Great explanation. Thank you
@JamesQQuick
@JamesQQuick 7 ай бұрын
Glad it was helpful!
@nested9301
@nested9301 7 ай бұрын
just combine both of them i notice that with E commerce apps some pages is constantly needs fresh data from the server so i mixed both multi page and single page
@fullstackmarketing247
@fullstackmarketing247 6 ай бұрын
Nice work
@alexch5106
@alexch5106 11 ай бұрын
James. I usually do multi page applications. Using node and vue inside html without vue cli. It is fast and easy to update and add new features. what do you think?
@JeremiKress
@JeremiKress 11 ай бұрын
Do you have a github repo ? I'm new to web dev and would love to see the work flow
@karlstenator
@karlstenator 11 ай бұрын
Interested in the details if you'd care to share?
@JamesQQuick
@JamesQQuick 10 ай бұрын
If that works for you, that's all that matters!
@cachipum
@cachipum 6 ай бұрын
sometimes you can't choose... for example deploying things like "decentralized" frontends, where it does not exist a SSR concept, so SPAs will continue being improved, in things like SEO, performance, and usability, I think on the future both MPAs and SPAs will be on par but highly specialized in solving their challenges
@Brofix_
@Brofix_ 11 ай бұрын
What about things like Phoenix LiveView or Laravel Livewire?
@aymaneharmaz7126
@aymaneharmaz7126 2 ай бұрын
Can mpa be used with a micro-services on the backend ?
@charlesscholton5252
@charlesscholton5252 Ай бұрын
I am favor of generating Static Web pages and then using JS for data islands or SPA like features that dynamically Morph a static into a Spa. So in the case if feedback from, the submission is posted without page reload and the main content area changes state without leaving page. What is key is to regenerate statics only when the important data changes. I am in favor of having the server generate statics instead of having to recompile and upload a website.
@nedaification
@nedaification 11 ай бұрын
when to choose one over the other? It depends. Thank you for this very useful video.
@JamesQQuick
@JamesQQuick 10 ай бұрын
It always depends lol
@ai10oz
@ai10oz 7 ай бұрын
I do not know whether I am making a sound decision about SPA or MPA here in this case where I have to build a portfolio website for an artist who wants to showcase art work. To the most part it is their artwork as pictures and description in texts which are visible to the visitors of the webpage. After seeing this explanation I believe it is MPA where I can use Django to build the webpage. But as an artist will there be an expectation for user experience? In that case then front end should be handled by dedicated JavaScript library like React or any other front end framework like Angular. I still do not know. I am just guessing. If someone can help me with this it will be adding value to my decision making process. Thanks for the video. It was a good learning experience.
@JamesQQuick
@JamesQQuick 7 ай бұрын
Honestly, both options would work for you. A lot of people are doing statically generated sites for your use case which is a great way to go. Those be done as MPAs or SPAs depending on the framework
@ai10oz
@ai10oz 7 ай бұрын
​​@@JamesQQuickHey. Thanks for the reply ❤.. But by statically generated sites did you mean like using Hugo or by using React with Next.js which supports SSG? I am new to this space and I am trying to learn full stack so....
@JeremiKress
@JeremiKress 11 ай бұрын
What tool are you using for the illustrations?
@recursion.
@recursion. 11 ай бұрын
that's excalidraw
@JamesQQuick
@JamesQQuick 10 ай бұрын
Yep!
@b1mind
@b1mind 11 ай бұрын
Transitional Apps with SvelteKit best of all worlds.
@rv8804
@rv8804 9 ай бұрын
This is why Rails is growing again. With Rails 7 and hotwire you have your multipage application that behaves like a single page application where it needs to with out all the extra BS.
@kenneth.topp.
@kenneth.topp. 11 ай бұрын
Javascript is so fad driven they had to rename the old way for people to think its the new thing to do.
@dripcaraybbx
@dripcaraybbx 11 ай бұрын
I tried to explain "JAMStack" to a React dev and he was very confused
@JamesQQuick
@JamesQQuick 10 ай бұрын
It changes so quickly lol
@infamouse9149
@infamouse9149 11 ай бұрын
0:06 Are Creepy Dementia Joe style whispers into the microphone the new thing in KZbin videos? Let’s all hope not!
@JamesQQuick
@JamesQQuick 11 ай бұрын
We'll see :)
@recursion.
@recursion. 11 ай бұрын
@@JamesQQuick James you gotta wear mask next time just to piss this guy out😂😂
SPAs vs MPAs/MVC - Are Single Page Apps always better?
15:59
Academind
Рет қаралды 132 М.
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 16 МЛН
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 50 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 3,3 МЛН
The Noodle Picture Secret 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 29 МЛН
HTMX - What they don't want you to know!
13:28
CoderOne
Рет қаралды 79 М.
WTF Do These Even Mean
13:44
Web Dev Simplified
Рет қаралды 75 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 908 М.
You don't need a frontend framework
15:45
Andrew Schmelyun
Рет қаралды 105 М.
What is a single page application? SPA
8:00
Programming w/ Professor Sluiter
Рет қаралды 32 М.
You Suck At Accessibility (But You Don't Have To)
13:23
Web Dev Simplified
Рет қаралды 52 М.
The Most Important Skill You Never Learned
34:56
Web Dev Simplified
Рет қаралды 155 М.
100+ Web Development Things you Should Know
13:18
Fireship
Рет қаралды 1,4 МЛН
Dynamic Websites vs Static Pages vs Single Page Apps (SPAs)
12:11
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 16 МЛН