by NuDinNou on 9/8/20, 3:13 PM with 3 comments
by PaulHoule on 9/8/20, 3:38 PM
If your usage will be small enough that those prices aren't painful then you get true 24/7 availability, reasonable performance and a lot of convenience.
Add the python server and your costs might go up. For applications that are mostly static but have an occasional form (say email newsletter subscribe/verify/unsubscribe script) the economics of the lambda functions and the web service gateway are great. If you are going to have a python script called for every html page (e.g. conventional CMS) you might not like the economics.
You could run a small cloud server with the dynamic parts, you will always feel some tradeoff between "throw a lot of resources at it and be delighted with performance" and "try to save resources and find your server upside down with the casters up occasionally"
As for the rasp pi that was a fantasy that I remember internet anarchists being into back in the days of Hakim Bey and Falun Gong. It seemed "liberating" to people to have the 23/6 availability and inconsistent performance of running a low-price server at home. It might feel good to you but the users won't appreciate it.
Today it seems something a conservative politician would do: host the web server to get welfare benefits on a rasp pi behind a slow connection.
by jdbowman on 9/11/20, 10:40 AM
For instance, an always-free f1-micro instance from Google Compute Engine would work well.
Or Vercel https://vercel.com/pricing (formerly Zeit, I believe) may also fit your needs, assuming you can adapt your Python where needed.
Another option that might require modest refactoring of the Python: host the site as a static site on Github pages or Netlify. Then make the backend (still in Python) using AWS Lambda or Azure Functions or Google Cloud Functions.
by oblib on 9/8/20, 4:19 PM
Another option is to create a disk image for a Raspberry Pi that has your web apps installed and let them download it or purchase an SD card from you so they can run the app on their own Raspberry Pi.