torontojs / vms

Volunteer Management System
2 stars 1 forks source link

[Exploration] Hosting options #26

Open madcampos opened 1 week ago

madcampos commented 1 week ago

We want to explorer potential hosting options for the VMS.

So far the options are: Netlify and Cloudflare. But other options are welcome.

Tasks

pmjuu commented 1 day ago

Netlify vs Cloudflare

Feature Netlify Cloudflare
Serverless Backend API Serverless Functions: AWS Lambda-based, Node.js friendly with robust support for libraries. Cloudflare Workers: Edge-first, ultra-lightweight serverless environment with low-latency global responses.
Database Integration Requires external databases:
PostgreSQL, Supabase, Firebase, or others.
Cloudflare D1: SQLite-based serverless database seamlessly integrated with Workers.
Integrated Ecosystem Frontend and backend can be integrated, but full integration including databases is difficult. Full integration of Pages (frontend), Workers (backend), and D1 (database) is possible.
Node.js Support Fully supports standard Node.js modules and AWS Lambda's ecosystem for wide library compatibility. Limited support for some Node.js modules (e.g., file system-related modules).
Pricing Option Free tier available,
with Pro Plan at $19/user/month.
Free tier available
(includes Pages, Workers, and D1),
with Pro Plan at $20/month.

Notes

  1. Cloudflare D1's Beta Status:

    • Still in beta, potentially less mature and stable compared to traditional databases like PostgreSQL/MySQL.
    • Alternatives such as SQLite Cloud can be considered. (its free plan is also currently in beta)
  2. Cron Jobs:

    • Netlify: Does not provide native Cron Job support. External services (e.g., GitHub Actions, AWS Lambda) are required for scheduled tasks.
    • Cloudflare: Allows scheduled tasks (e.g., data processing, JSON generation) using Workers.
evert commented 1 day ago

Another idea is a Digitalocean droplet. Or https://www.hetzner.com/ is competing with everyone for price.

pmjuu commented 19 hours ago

@evert Thanks for your opinion! I found many articles comparing them. I'm sorry they don't provide a free plan, but they still seem to be competitive services.

Reference) https://www.digitalocean.com/products/droplets https://getdeploying.com/digitalocean-vs-hetzner

kbventures commented 5 hours ago

@evert slipplane.io is also great but lacks a free plan. Cloudflare is leading so far because it integrates well with Hono, and the free tier covers static content, web services (Hono), D1 (SQL-like), and KV (Cache).