OSS ReviewPostHog

PostHog Production Readiness Report

All-in-one product analytics, session replay, feature flags, and experiments. Powerful but heavy to self-host.

Category
Product Analytics
Language
Python / TypeScript
License
MIT + paid features
Deployment
Kubernetes (Helm)
Datastore
ClickHouse + Postgres + Kafka
Ingest
JS/Mobile SDKs, API
Readiness
Production ready for capable ops teams
Complexity
Expert
Est. cost
$300–$2,000+ / mo
Recommended
Kubernetes + ClickHouse + Kafka + Postgres + Redis + object storage
01Executive summary

PostHog bundles analytics, session replay, feature flags, and experiments into one platform. Self-hosting gives you full data ownership, which is the main reason teams take it on.

It is one of the heavier stacks to operate: ClickHouse, Kafka, Postgres, Redis, and object storage all in play. PostHog officially recommends their Cloud for most teams and reserves self-hosting for those with strong infra capability and a clear data-residency requirement.

74/ 100
Production ready for capable ops teams

Production readiness score

Local setup
3/5
Production readiness
4/5
Documentation quality
4/5
Operational burden
2/5
Feature breadth
5/5
02Fit assessment

Best for

  • Teams with strict data-residency requirements
  • Organizations with dedicated platform/SRE capacity
  • Replacing several tools (analytics + flags + replay) at once
  • High event volumes where Cloud pricing is prohibitive

Not ideal for

  • Small teams without ops capacity (use PostHog Cloud)
  • Quick, low-maintenance analytics needs
  • Environments that cannot run Kafka and ClickHouse
03Deployment complexity
Expert

This is an expert-level deployment. The ingestion pipeline spans Kafka and ClickHouse, and version upgrades require care across stateful services.

ClickHouse

Core analytics store; needs sizing, sharding, and backups.

Kafka

Event ingestion backbone; a stateful service to operate.

Upgrades

Multi-service migrations; follow Helm upgrade notes closely.

Scale

Resource needs grow sharply with event volume.

04Infrastructure requirements
What it takes to run
Compute
8+ vCPU / 16+ GB minimum, scales with volume
Analytics DB
ClickHouse (sized to events/day)
Streaming
Kafka
Database
PostgreSQL
Cache / Storage
Redis + S3-compatible object storage
05Operations & security

Security considerations

  • Keep ClickHouse and Kafka on private networks only.
  • Enable SSO/SAML and project-level access controls.
  • Configure ingestion to honor data-residency boundaries.
  • Apply PII filtering and session-replay masking rules.

Backup & recovery

  • Back up ClickHouse with native backups to object storage.
  • Back up PostgreSQL for app metadata and configuration.
  • Document Kafka topic retention; it is a buffer, not a system of record.
  • Rehearse a full restore — multi-store consistency is the hard part.

Monitoring

  • Track Kafka consumer lag as the primary ingestion-health signal.
  • Monitor ClickHouse merges, disk, and query latency.
  • Alert on event-ingestion error rates and dropped events.
  • Watch pod resource saturation across the Helm release.
06Cost estimate
$300–$2,000+ / motypical range
Small self-host
$300–$600 / mo

Modest volume, single ClickHouse node

Production
$800–$2,000 / mo

Scaled ClickHouse + Kafka + HA

Enterprise
Custom

Sharded ClickHouse, multi-AZ, support

07Alternatives
How it compares
Plausible
Lightweight, privacy-first web analytics; far simpler to host.
Matomo
Mature web analytics; MySQL-based, easier ops.
Umami
Minimal self-hosted analytics for basic needs.
PostHog Cloud
Same product, fully managed — recommended for most.
08Recommended architecture

Reference stack

Kubernetes + ClickHouse + Kafka + Postgres + Redis + object storage

  1. 01
    IngressLoad balancer + TLS

    Event ingestion and app

  2. 02
    AppPostHog web + plugins

    Dashboards, flags, replay

  3. 03
    StreamingKafka

    Buffers incoming events

  4. 04
    AnalyticsClickHouse

    Stores and queries events

  5. 05
    DataPostgres + Redis + S3

    Metadata, cache, recordings

->Deployment services

We deploy PostHog on infrastructure you control.

Skip the trial-and-error. Our team handles architecture, security hardening, backups, monitoring, and upgrades — then hands you a production-ready, documented deployment.

Request PostHog deployment