DEV Community

Discussion on: Why static sites are back

Collapse
 
shaijut profile image
Shaiju T • Edited

Nice πŸ˜„, Any use cases when we should not use static sites ?

Collapse
 
wassimchegham profile image
Wassim Chegham

I wouldn’t necessarily build an app as a static site app, or a static web app, if your app is rendered on the server (like a Java web app), or if you’re building a monolith app. Also, if you heavily depend on a web server, like Apache or nginx to serve your app. CMS apps are also not suited for static web apps.

Collapse
 
shaijut profile image
Shaiju T

CREATE:Frontend , session as good :)

Collapse
 
shaijut profile image
Shaiju T

So what is the best use cases to build static sites ?

Thread Thread
 
debs_obrien profile image
Debbie O'Brien

Any websites where the content doesn’t change every hour for example. I have built hotel sites, travel agent, the NuxtJS docs, personal websites, websites for companies. Small e-commerce sites. The list goes on.

Thread Thread
 
shaijut profile image
Shaiju T

Thanks, I understand, So now we have Azure Static Web Apps and Azure Functions API, with these 2 technologies we can even create dynamic sites like hotel sites, travel agent, personal websites, websites for companies, Small e-commerce sites etc.

So do we now really need sever side technologies like PHP, Java, C#, Go , instead We can do all things using API isn't ?

Thread Thread
 
debs_obrien profile image
Debbie O'Brien

Exactly

Do we need server side technologies- well we can still write serverless functions in java and go and c# for example but what I think we don't need anymore is frontend and backend code mixed together to create an application. So let the backend create amazing API's which the frontend can use to create amazing apps/sites.

Thread Thread
 
shaijut profile image
Shaiju T • Edited

Thanks, Appreciate, πŸ˜„, CREATE:Frontend , session as good :)