I’m building a Web app in codeigniter. Instead of the http server speaking to MySQL via php, and what if I built 2 applications, the first one would talk directly to MySQL, and serve as an api server. Perhaps using xml rpc or rest..
The second app, which would serve the front end, the http stuff, and but speak directly to the api server, instead of speaking to MySQL
What are the pros and cons of using this approach. Everything will run on the same network internally but only the http / front end servers are accessible to the Web via a load balancer.
PROs:
CONs: might be overkill depending on your needs