DEV Community

Discussion on: Is the JAM stack the future of web development?

Collapse
 
esportleague profile image
e-leag

Does anyone have an example of a website with dynamic content, e.g. with production product prices changing many times per hour etcc ?

Collapse
 
bezpowell profile image
BezPowell

I can't actually think of any off the top of my head. If you could only re-render pages where stock / price etc. has changed you could extend the definition of static to things that only render when changed.

I suppose the only things that would need to be truly dynamic would be situations like unique account pages and stock prices etc?

Very interesting when you start to think about what can be rendered statically.

Collapse
 
lbayliss profile image
Luke Bayliss

Social media is an example of a website with dynamic content and Ebay is an e-commerce example; they all have data that is changing constantly. They wouldn't work well as JAMStack as you'd have to trigger a rebuild every time someone makes a bid or creates an auction.

That's not to say you can't have the best of both worlds. Almost every application I've built in the passed two years has made use of SSR and Static.

Thread Thread
 
esportleague profile image
e-leag

And what would you choose from assistance such as gatsby but to build a mainly dynamic website?

Thread Thread
 
hijazi313 profile image
Muhammad Hamza Hijazi

SSG is not recommended where content is dynamic. you should go with SSR instead