Want to give a little insights how Openpanel's infra looks like. I decided quite early that I want to go the VPS route since I think it much more predictable (pricing) and this approach would be easier for others to self-host since you would not need that many other third party services.
The only thing that is not running on this VPS is the dashboard website. We currently run that on
@vercel.
What's on the VPS?
- The api (
@fastifyjs) for events and trpc for the dashboard and the coming app (6 instances)
-
@ClickHouseDB for storing all events
-
@PostgreSQL for storing general data
- PGBouncer for handling db connections
-
@Redisinc for KV store and queue
- observabilitystack/geoip-api for getting GEO information
- Docs (nextjs app)
- Landing site (nextjs app)
As you can see we have a lot of different services running but the VPS runs this very smoothly now.
Rather then starting with free tiers and get surprised of costs I like to start with a VPS and then slowly and steady moving things out.
Clickhouse and postgres is probably the only thing I'll move out. Other than that I think this will run good for a long time.
#buildinpublic