Hasty Briefsbeta

From Azure Functions to FreeBSD

3 days ago
  • #FreeBSD
  • #Self-hosting
  • #Azure Migration
  • Author experienced a service outage on Thanksgiving due to Azure Functions runtime issues.
  • Azure Functions' Linux Consumption plan is reaching EOL, prompting migration.
  • Migrated web services to a self-hosted FreeBSD server in a garage.
  • Initial setup in 2021 used Azure Functions for cost efficiency and ease.
  • Faced challenges with MSSQL for database needs, switched to PostgreSQL.
  • Outage triggered immediate migration to FreeBSD for better control.
  • Used FreeBSD's daemon(8) to manage HTTP services without major code changes.
  • Implemented log rotation with newsyslog to manage service logs.
  • Used Cloudflare Tunnels for TLS termination and CORS handling.
  • Gained predictability, performance, ease of management, and cost savings.
  • Lost some cloud benefits like high availability and staging deployments.