Let's forget scaling or cloud configuration for a second.
Think of an application with a few platforms:
- Mobile (iOS, Android)
- Desktop (Windows, OS X)
- Web (HTML/CSS/JS)
The question is regarding the back end.
Obviously the backend has to include a web server to handle the web traffic. And if there wasn't a need for Mobile or Desktop application support, i'd say the web server would probably be PHP and talk directly with the database, keeping the "Application Logic" in PHP.
But as Desktop and Mobile support is needed. According to my understanding there has to be another layer where the "Application Logic" lies. the Web Server, Mobile, and Desktop would be talking to that application layer using something like REST and the database access would be handle from there.
- Should Web Servers use REST to speak to the application logic? I know it's normal for mobile and desktop applications.
- Is there a better pattern for what I described?