DEV Community

Alex Gwartney
Alex Gwartney

Posted on

When should you use rest api for rendering vs server-side rendering?

So hopefully the question makes sense. But I'm needing some guidance. When you are using something like laravel. When should a rest api be used to consume, and display that data using a client-side framework such as vue? Vs using something like blade templates and letting the server-side render the view and just pass the data to the template?

Would be happy to get any guidance on this as im sort of just confused.

Thanks!

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more