I'm not telling which one to pick, instead of that i will give idea about both of this. You can take your decision.
Option 1
Pros:
- Front-End and Back-End are different, Soso you can easily handle many requestrequests (Load Balancing).
- Data Security is more in this, because Userthe user cannot change the Data models easily (Data Security).
Cons:
- You need two different server to host. (More CostingHigher cost)
- Changes and deployment needs to be done byin two places and Deployment. (Extra time)
Option 2
Pros:
- Cons of Option 1
Cons:
- Pros of Option 1
It's dependIt depends upon your use case, if. If you're building some static site with small contact us"Contact us" form data to be saved in DB, Youyou can use Option 2. If you're going to create a site which will have fully dynamic data then go for Option 1. Think and takemake a decision.
Let me know if this works