Dynamic/SPA/Static Websites
Websites contain static content (html, css, images etc.) whereas web applications are more complex and interactive, i.e. user read and update data.
Dynamic Apps
Web server creates html pages (Server Side Rendering) with data using a server-side programming language and sends it in response to requests coming from the clients (browser). The server interacts with APIs or databases directly to get the data for the pages.
Use ASP.NET Core MVC, Java Spring frameworks to build dynamic web applications.
SPA (Single Page Applications)
The web server (you could use a CDN to deliver too) on the first request from the client returns a main/base html page (like a container) along with all the JavaScript's needed to generate subsequent html pages (Client Side Rendering) on the client side(browser). JavaScript's call backend APIs for required data to weave into the html.
SPA is good choice for SaaS business applications because you don't really need search engine crawling.
Angular, Vue.js, React.js frameworks are popular for building SPAs
Static Web Apps
Static site generators like Next.js, Hugo, Gatsby, Jekyll, etc. pre-render or generate full html pages with data during compile time and stores them on a server/storage(Azure Storage/AWS S3).
Consider static web apps when content does not change that often, like blogs, company public portals etc.
Comments
Post a Comment