GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing wavehouse.dev — Why WaveHouse? Why WaveHouse?WaveHouse is an API gateway purpose-built for fronting ClickHouse® with user-facing traffic. This page is the engineering answer to “why not just point my clients at ClickHouse?” — or “why not Kafka® + ClickHouse?” or “why not Tinybird™?” — with the failure modes, the common DIY stacks, and where the cost falls. Part I — Why ClickHouse alone breaks under user-facing writesSection titled “Part I — Why ClickHouse alone breaks under user-facing writes”The one-row-insert anti-patternSection titled “The one-row-insert anti-pattern”ClickHouse is an OLAP database. Every ClickHouse’s own documentation is unambiguous: insert batches of 1,000–100,000 rows at a time, and no more often than once per second. (ClickHouse — Inserting Data Best Practices.) A frontend that POSTs one event at a time violates both rules by orders of magnitude. What goes wrong in concrete terms: The The scenario in dollars. A product shipping 10M events/day to ClickHouse directly — say, a user analytics widget on 20k daily actives — produces ~115 events/sec. With default merge settings, an unlucky hour of traffic spike pushes you over the delay threshold; inserts stall; the frontend starts 503’ing; engineers get paged; someone spends the weekend writing an ad-hoc batching service. The same 10M events/day via WaveHouse: ~17k bulk inserts/day instead of 10M, merge pressure flat, no incidents. No backpressure, no DLQ, no validation at the edgeSection titled “No backpressure, no DLQ, no validation at the edge”Even if you remember to batch client-side, a naive ingest path has no safe way to tell a client “slow down” or “that payload was malformed”:
WaveHouse fixes all three at the gateway: validates every payload against the real No real-time pushSection titled “No real-time push”ClickHouse has no pub/sub. If a dashboard needs to see new events within a second of ingest, your choices are:
WaveHouse’s SSE layer broadcasts events before they flush to ClickHouse, with NATS JetStream history for gap-fill when a client reconnects. Same binary, no separate pub/sub stack. Thundering-herd queriesSection titled “Thundering-herd queries”A popular dashboard recomputes the same expensive aggregation for every viewer. ClickHouse has a built-in query cache, but it is per-server and there is no client-facing singleflight: 50 dashboards hitting refresh at once means up to 50 identical queries land on ClickHouse. WaveHouse coalesces identical queries with an in-process Ristretto cache and Go’s No row/column access controlSection titled “No row/column access control”ClickHouse has users and role grants, but nothing like row-level security driven by a JWT claim. If your product serves multiple tenants from a shared table, you’re writing middleware to inject Part II — What people actually build insteadSection titled “Part II — What people actually build instead”The canonical DIY stack for user-facing analytics on ClickHouse looks like this: Ingredient count, cleanly:
The DIY path works — big teams run it — but the ops cost is not small. You’re paying for a Kafka cluster (or Confluent bill), a second service you wrote from scratch, and all the debugging hours when the batching consumer stalls at 3 a.m. The scenario. A seed-stage team building user-facing analytics picks “Kafka + ClickHouse + custom ingest”. Six months in: two engineers are spending ~30% of their time on data-plane reliability (batching edge cases, DLQ replay tooling, Kafka upgrades, monitoring dashboards for all of it). That’s roughly one full-time engineer of drag on a 3-person backend team. A drop-in gateway removes that line item. TinybirdSection titled “Tinybird”Tinybird is the most direct commercial alternative — a hosted ClickHouse platform with SQL-based “pipes” for defining APIs. Genuinely good product for teams that want to pay to skip the plumbing. Where it differs from WaveHouse:
Tinybird wins on “zero ops to start.” WaveHouse wins on “own your data plane and pay AWS™, not a second vendor” — which gets more compelling at scale, on sensitive data, or for anyone who needs on-prem. Part III — The feature matrixSection titled “Part III — The feature matrix”
Part IV — End-to-end data journeySection titled “Part IV — End-to-end data journey”How an event actually moves through WaveHouse, end to end. The ingest path is split into a synchronous edge (everything before the Ingest & broadcast path: Query path with tiered cache: Latency budget at each stage (representative):
Part V — When WaveHouse is not the right answerSection titled “Part V — When WaveHouse is not the right answer”The honest list:
SummarySection titled “Summary”The pitch in one sentence: ClickHouse is a great database and a poor API. Every product putting user-facing traffic on ClickHouse eventually builds WaveHouse — the question is whether you build it on the weekend before the merge backlog, after it, or skip the build by deploying ours. Read next:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |