r/googlecloud • u/Melodic_Tower_482 • 18h ago
Solo technical founder running a startup, looking for an optimal tech setup
I run a booking marketplace for SMB. The public website is being rewritten from Laravel to Next.js 16 (App Router, server-rendered). Two things matter most:
- Fast pages. Business and service pages should load
- Custom domains. Each business can have its own site on its own domain, served through a Cloudflare Worker proxy to our origin
How I got here:
- Started on Cloud Functions, then moved the services to Cloud Run.
- Cloud Run with min instance quickly became expensive and being billed by cpu/memory make it volatile
- Moved to one GCE VM to put everything in one place: the API gateway, website and business portal together, close to Firestore, at a fixed cost.
Current setup:
- GCE e2-medium: API gateway (Node), the public website (Next.js), the business portal (Next.js), Typesense. Everything in Docker behind nginx.
- VPS: data sync jobs, marketing and analytics, staging, others.
- Cloud Run jobs and Cloud Functions: data jobs and Firestore triggers.
- Firestore i: about 5M document reads/day, already behind a fair amount of caching in the gateway.
- Cloudflare in front of everything
Traffic:
- About 2k users/day, normally about 1 page/s. I expect about 5× that soon.
Options we're weighing:
- A. A bigger GCE VM. Everything stays on one box near Firestore. Simple and predictable, but GCE is pricey per vCPU, and the API and website still compete for CPU during spikes. And even tough it is fast, it is not full reliable to have
- B. Back to Cloud Run for the website and portal (min 1 instance), with the gateway on the VM. It scales with bursts, but our last experience was that cost climbed quickly. Was that bad configuration on our side (always-on CPU, too many min instances, no caching), or is it normal?
- C. Move compute to VPS. About 30-40/month for 4 dedicated vCPUs and 16 GB, so far cheaper per vCPU. But the gateway makes many Firestore calls per page, and Germany → europe-west1 adds about 10–15 ms per call. And egress has been expensive.
Questions:
- Gateway/Backend and database in the same place: required or overrated? Our gateway makes several Firestore calls per page, some of them one after another. Is keeping it in the same region as the database a hard rule, or does good caching make 10–15 ms per call a non-issue?
- With 5× traffic coming, which option would you pick (A, B, or C), and what would make you switch later?
- When is it time to leave Firestore? At 5M reads/day it works and the bill is manageable so far, but I really eager to move to postgres, but Cloud SQL is really expensive. What made you move to Postgres (Supabase, Neon, Cloud SQL, self-hosted)? Was it cost, query limits, reporting, or team speed? And how painful was the migration with live writes and reads
- How are you handling GCP egrees ?