Separating Desk and Portal servers

To segregate the access to servers (and maybe load), I was wondering if this arrangement can be implemented:

My basic non-expert thinking is that if the Frappe and ERPNext is the same then the database structure should be the same.

Does anyone ever do this?
What is the conditions must be considered?
I’m hoping to get more expert suggestion here.
Thank you.

1 Like

We have one server for our website that will pass data from the web forms to another server via the API. So it’s like in your diagram but with API calls instead of a shared database.

Is there any reason (advantage/disadvantage) of using API instead of shared db?
Because shared db, I guess, is simpler and no development required (develop API for every form would be lot of works)

The API, is it REST API or straight python?