Every Click Is a Row
Easy · system design problem
A campaign doubles the clickstream. The writer inserts one ClickHouse row per click, ClickHouse falls behind — and the lag never stops growing.
Clicks flow into Kafka and click-writer inserts one row per click into ClickHouse, which powers per-minute dashboards. ClickHouse keeps up with 50,000 clicks/s at 83% of its capacity. At T+20s a campaign doubles traffic for the rest of the day. The dashboards only show counts per campaign per minute, and ClickHouse cannot be resharded without re-inserting its history. Dashboards may lag by a minute.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.