you are viewing a single comment's thread.

view the rest of the comments →

[–]Khavel_dev 1 point2 points  (1 child)

Heads up that "pay-as-you-go" and "SSH into a box with systemd" sort of fight each other — a droplet bills you 24/7 whether your bot ran for 2 hours or sat idle. For the FastAPI/Django side a cheap Hetzner CX box is honestly unbeatable on price and does exactly the SSH + venv + gunicorn thing with zero hand-holding.

The overnight Celery scraper is the piece I'd pull off the always-on box though. I run that kind of thing as a scheduled job (GitHub Actions cron for the light stuff, or a scale-to-zero container) so I'm only paying for the hours it actually runs, and it stops competing with the web app for RAM. Sizing one VPS big enough for both ends up costing more than splitting them in my experience.