alisanie's avatar

Benefits of using separate API and UI servers on Different Servers

Hi

I'm going to create API (using Laravel) that can handle my Webapp ( angular ) and of course using for mobile app in near future.

So I want to know should I have two separate server (one for API + one for Web app) or just create a subdomain for API on the same server.

What is your suggestion ?

Thanks

0 likes
1 reply
RamjithAp's avatar

The choice is yours. You can have your angular web app at

www.example.com

And your Laravel API app at

www.example.com/api/ or api.example.com or apinewdomain.com

Or you can have both on different servers and different domain names nothing can stop you from connecting each other. Whichever convenient to you do that way.

Please or to participate in this conversation.