43 karma · joined Sep 19, 2024 (2y ago) · 42 submissions
1.
Why autonomous agents still can't run on their own(glassflow.ai ↗)
1 points · by super_ar · 2mo ago · discuss
comment 7mo ago · link · parent
Where we saw friction with Flink was mainly: 1.) Operational overhead (jobs, state backends, checkpointing) 2.) Generic sinks not being optimized for ClickHouse (batching, small inserts, etc.)
We focused on making scaling a property of the pipeline itself (just add replicas) and optimizing specifically for ClickHouse ingestion patterns.
So Flink is more general, this is more opinionated and focused on this specific use case.
3.
Show HN: 500k+ events/sec transformations for ClickHouse ingestion(github.com ↗)
13 points · by super_ar · 7mo ago · 4 comments
comment 7mo ago · link · parent
logs/metrics → Vector → ClickHouse
Works well as long as they run simple transformations via Vector. When they start adding things like dedupe, longer time windows, more data volume or joins, things start to break. They actually start using Vector as a stream processing engine.
Very typical issue that I see:
Time window limits: By default vector handles windowing in-memory. So with a higher load, it becomes too heavy to run there.
Missing support: When running in prod env, I have seen teams under pressure because there is no support available (except for Datadog customers). But most people I know run it self-hosted.
Scaling hits ceiling: I keep hearing similar numbers: 250k to 300k rec/sec per instance. Even by adding more resources, things do not scale. The consequences are: backpressure, latency spikes, etc.
At that point, it is no longer a “log pipeline.” It is a streaming system. Just not treated like one.
I wrote a deeper breakdown of this here if anyone’s curious:
https://www.glassflow.dev/blog/when-vector-becomes-your-stre...
Curious how people here are handling this.
Are you still pushing more logic into Vector, or have you split it out elsewhere?
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
One of the top questions we received was: “How well does it perform at high throughput?”
We ran a load test and would like to share some results with you.
Summary of the test:
- Tested on 20m records
- Kafka produced 55,000 records/sec
- Processing rate of GlassFlow (deduplication): 9,000+ records/sec
- Measured on a MacBook Pro (M3 Max)
- End-to-end latency: <0.12 ms per request
Here is the blog post with full test results and tried with different parameters (rps, # of publishers, etc.): https://www.glassflow.dev/blog/load-test-glass-flow-for-clic...
It was important to us to set up the testing in a way that everybody could reproduce. Here are the docs: https://docs.glassflow.dev/load-test/setup
We would love to get feedback, especially from folks consuming high-throughput in ClickHouse.
Thanks for reading!
Ashish and Armend (founders)
13.
Load Test GlassFlow for ClickHouse: Real-Time Dedup at Scale(glassflow.dev ↗)
22 points · by super_ar · 1y ago · 10 comments
comment 1y ago · link · parent
Here 2 more detailed examples:
Real-Time fraud detection in logistics: Let's say you are streaming events from multiple sources (payments, GPS devices, user actions) for a dashboard that should trigger alerts when anomalies happen. Now you have duplicates (retries, partial system failure, etc.). Relying on RMT means incorrect counts until merges happen. This situation can lead to missed fraud, later interventions, etc.
Event collection from multi-systems like CRM + E-commerce + Tracking: Similar user or transaction data can come from multiple systems (e.g., CRM, Shopify, internal event logs). The same action might appear in slightly different formats across streams, causing duplicates in Kafka. ClickHouse can store these, but it doesn't enforce primary keys, so you end up with misleading results until RMT resolves.
comment 1y ago · link · parent
ClickHouse doesn't enforce primary keys. It stores whatever you send. ReplacingMergeTree and FINAL are concepts on ClickHouse, but they are not optimal for real-time streams due to the background merging process that needs to be finished to ensure correct query results.
With GlassFlow, you clean the data streams before they hit ClickHouse, ensuring correct query results and less load for ClickHouse.
In your IoT case, a scenario I can imagine is batch replays (you might resend data already ingested). But if you're sure the data is clean and only sent once, you may not need this.
comment 1y ago · link · parent
comment 1y ago · link · parent
20.
Show HN: GlassFlow – OSS streaming dedup and joins from Kafka to ClickHouse(github.com ↗)
78 points · by super_ar · 1y ago · 32 comments