I'm building a project that includes both a mobile app (built with Jetpack Compose) and a web app (built with React.js). I want to know the correct architectural approach:
Should both platforms connect to the same backend (e.g., Express.js) and store data in the same database (like MongoDB)?
Or is it recommended to separate them — like having different APIs or even different databases?
This is more of a best-practices question around full-stack architecture for multi-platform apps.
So far, I’ve planned to build a single backend using Node.js + Express and have both the mobile app and website interact with the same API and database.
I just want to confirm whether this is a good/common practice or if it can lead to scaling or security issues later.
I expected that using one backend for both platforms is simpler and keeps everything in sync, but wanted to get community input before finalizing the approach.