https://github.com/dittofeed/clickhouse-segments-tutorial
Repository demonstrating how to calculate user segments in Clickhouse.
https://github.com/dittofeed/clickhouse-segments-tutorial
clickhouse customer-engagement customer-segmentation
Last synced: 17 days ago
JSON representation
Repository demonstrating how to calculate user segments in Clickhouse.
- Host: GitHub
- URL: https://github.com/dittofeed/clickhouse-segments-tutorial
- Owner: dittofeed
- License: mit
- Created: 2024-01-16T04:24:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-02T01:04:00.000Z (over 1 year ago)
- Last Synced: 2024-11-13T22:33:29.072Z (11 months ago)
- Topics: clickhouse, customer-engagement, customer-segmentation
- Language: TypeScript
- Homepage: https://www.dittofeed.com/
- Size: 19.5 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clickhouse Segments Tutorial
This repository provides a tutorial on how to implement live user segmentation in ClickHouse.
It accompanies a [technical blog post](https://dev.to/dittofeed-max/how-we-stopped-our-clickhouse-db-from-exploding-2969), which can be read in parallel.
These test implementations are written in ascending order of complexity.
1. [Naive](./src/1-naive.test.ts)
2. [Idempotent](./src/2-idempotent.test.ts)
3. [Micro-Batch](./src/3-microBatch.test.ts)
4. [Event Time vs. Processing Time](./src/4-eventTime.test.ts)If you found this interesting, we'd love it if you shot over to our main repo and gave us a star! 🌟
https://github.com/dittofeed/dittofeed