How I Run Six Services on a Single £8-a-Month Server
A single Hetzner VPS runs Spellcast, Postiz, Postgres, Redis, Temporal, and Caddy.
A single Hetzner VPS in Helsinki, priced at £8.29 per month, hosts six services for Spellcast, a social scheduling platform. These services include Postiz, a publishing engine; PostgreSQL; Redis; Temporal, a workflow engine; and Caddy, which manages HTTPS. The choice of Hetzner over other cloud providers is primarily cost-based, as equivalent AWS or DigitalOcean instances would cost around £25-30 per month.
Docker containers manage all these services, simplifying deployment and reduction of complexity. Postiz handles social media publishing, including OAuth integrations and API calls to various platforms. Temporal ensures reliable execution of long-running processes, with automatic retries in case of failure. Caddy automatically handles HTTPS for these services, eliminating the need for manual certificate management or Nginx configurations.
The server's 4 GB RAM and 40 GB NVMe storage are sufficient to handle hundreds of social posts per week. Deployments of the Spellcast API typically take 3-4 minutes from git pull to live, although this is not a zero-downtime process. The total monthly cost for this infrastructure is approximately £11, which is significantly less than the cost of running these services on other cloud platforms.
The setup is designed to handle a certain level of traffic, but if the demand exceeds the current resources or the server goes down, scaling up to a second server may be necessary. The key takeaway is to start with minimal infrastructure and only scale up when there is a genuine need, avoiding the pitfalls of premature scaling.
Rewritten by urgent.news; may contain errors — check the original.
Source: hackernoon.com
Read the original at hackernoon.com →
More from HackerNoon on urgent.news
Report a problem with this story
Get the day's news by email. Daily, weekly or monthly. Sign up