Live data from Hacker News

Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?

news.ycombinator.com

61–70 of 79 posts

Re: Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?

#61
Can your code work on AWS Lambda with one of their DB services? If you need it to scale with growth starting on a cloud platform will save headache later. If you don't need scaling it's possible you could run it on the permanently-free tiers or very low cost once you utilize the free quotas each month.

Re: Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?

#62

If you want something fire and forget and since this is simple I would go with a serverless solution. Static files (with some little JS) hosted on some CDN and serverless database. One option is AWS dynamodb and their CDN, a more friendly beginner solution is firebase. You can't get more low maintenance than that.

Do you know of any existing tools for this on the server(less) part and database that aren't hard to setup?

Re: Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?

#63

Oracle Cloud only if you can use a their free VPS tier. If you can't, then Heroku or a cloud free tier.

I tried Oracle cloud free tier, it was all good until they banned me few days in for no reason (they didn't say in the email).

You'd have to be logged in to contact support :D

Re: Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?

#65
post #10

Dokku + your favorite VPS: http://dokku.viewdocs.io/dokku/ Installation is a breeze and there are plugins. If you're at all familiar with Heroku's deploy, you'll love this. It's the closest thing I've found to `git push` without any thinking.

Dokku + Hetzner + CloudFlare here. It's just so simple. I love it. I have noticed that deploys eat HDD for breakfast. Prune often. ("docker system df" helps show stats on space usage). I have also read many optimisation guides talking about Alpine Linux images, but not sure whether that makes a difference. Running a Go stack. Often wondering whether Caddy could be an alternative? Sometimes I feel like this is still "…

Docker sacrifies disk space, but at least do you have /var/lib/docker on btrfs ?

Traefik is a reverse proxy for containers out of the box, apparently you would need some plugin to have that feature on Caddy : https://github.com/lucaslorentz/caddy-docker-proxy

As such, it seems like Traefik would be easier to setup for your use case.

Re: Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?

#66
A bit of a mix of the other comments, but I use a generic VPS (I use DO now, used to use EC2, but anything works) with my application wrapped in a Docker container with its port exposed. Nginx reverse proxy to pass from 80 to my container's port. After that is working, I use certbot and it automatically detects Nginx and offers to automatically set up TLS on 443 and redirect 80 -> 443 to ensure connections are coming through HTTPS. certbot is a god send.

Re: Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?

#67
I still use Webfaction for my webapps although since they were bought by GoDaddy, costumers seem to start moving away from it.. But it is quite simple to deploy a Python webapp, they have one-click installers and you can ftp your source files like we all used to do..

Prices start from 10$/month.

Re: Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?

#68
post #35

PRGMR.com 1.25 GiB RAM, 15 GiB Disk for $5 per month. https://prgmr.com/xen/ inexpensive. no overage charges . can pay by bitcoin. (and a FreeBSD friendly). I wonder if you would also benefit from installing something like yunohost [2] on top of Debian. This will get you your personal cloud. And the use YounoHost's 'Custom web app' container [4] This way, you get an automatically configured web server (nginx), with c…

Are you affiliated with the company? I chuckle when I see this hosting shop pop up on HN. They had advertisements on the dividers at the Safeway in Mountain View. Was wondering how they worked that.

To my best knowledge, I and lsc are the only people associated with prgmr.com who post semi-regularly on HN. lsc isn't involved much beyond having a minor stake in the company.

lsc set up the Safeway divider advertisements. It was pretty cheap, like $150 a month. I don't think we would do it again, but it certainly caught a lot of people's attention.

Re: Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?

#69

I still use Webfaction for my webapps although since they were bought by GoDaddy, costumers seem to start moving away from it.. But it is quite simple to deploy a Python webapp, they have one-click installers and you can ftp your source files like we all used to do.. Prices start from 10$/month.

I moved to opalstack.com. Made by former WebFaction employees. Loving it.

Re: Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?

#70
post #26

AWS has a free tier for a year after signing up. A 'tiny' instance for webserver with letsencrypt on for your free ssl/tls certificates. You can automate backups via snapshots, though make sure they delete automatically after a week or so. I would recommend you use MySQL instead of SQlite, use RDS free tier there, SQlite not so good with concurrent connections and definately not if people are adding their own informa…

The user says, a tiny site, why the over engineering? Unless we are speaking of tens of concurrent connections SQLITE works.
Post reply on HN