I have an existing site using the traditional LAMP stack to present a dynamic website.
My intention is to attempt to port this using serverless techniques. Currently I host this from my own domain, from my own hardware. In an ideal world, I would retain the data onsite but the presentation tier (web farm or equivalent) could run on public cloud, specifically looking at Lambda as an example. However, if it is common / standard / etc to simply use the DF engine itself to assist with this, I could keep the entire infrastructure onsite.
What design patterns are available? What should I be thinking about?
I have a basic DF deployed sitting in front of the MySQL instance, and is able to provide JSON output of my existing SQL queries. This is the start. But how do I combine this with server-side calls to retrieve this data, process it and display it? (i.e. replacing the PHP part).
Should I use DF’s own post-processing capability, to do the code processing and return a full HTML page?
I understand the principle of simply publishing out my data (from authorised API token access) in JSON format, which I would like to use. I am mostly stuck on the presentation tier and how it operates with DF.
Looking to simplify as part of this design.