Better HN
topnewbestaskshowjobs
Log inSign up

apurvamehta

88 karma · joined Apr 14, 2011 (15y ago) · 44 submissions

Building OpenData.dev
Submissions

1.

OpenData – Open-Source and Object Store Native Databases(opendata.dev ↗)

1 points · by apurvamehta · 5mo ago · discuss

2.

Kafka's Broken Promise: There Is No Goldilocks Log(opendata.dev ↗)

6 points · by apurvamehta · 5mo ago · discuss

3.

Our first customers were the exception(apurvamehta.com ↗)

3 points · by apurvamehta · 5mo ago · discuss

comment 6mo ago · link · parent

It's a demonstration. Kafka is a very popular input for Clickhouse. So are data lakes. The point is neither need Kafka at all.

5.

Ingesting 1Gbps of logs into ClickHouse for $180/month(opendata.dev ↗)

18 points · by apurvamehta · 6mo ago · 3 comments

comment 6mo ago · link · parent

Thanks! opendata contributor here.

We're heavily inspired by Turbopuffer. I'd say we are comparable to them when they launched in terms of perf and scale. But they've obviously invested heavily since then, so we're not going to match them on raw perf at scale right now. Our goal is to be a pretty competitive OSS offering over the long term though.

The next biggest lift for us to get much closer is quantization. If we squeeze more signal into fewer bits, we will improve performance end to end.

7.

OpenData Vector: MIT-Licensed Vector Search on Object Storage(opendata.dev ↗)

48 points · by apurvamehta · 6mo ago · 5 comments

8.

OpenData Buffer: HA pipelines without Kafka(opendata.dev ↗)

13 points · by apurvamehta · 7mo ago · 1 comment

comment 7mo ago · link · parent

+1 to what @agavra said. It's awesome to see you here @valyala. Your writing and talks about timeseries databases were a great inspriratino for us. I recall one of your earlier talks about the data layout design of VM. Opendata Timeseries has emulated a lot of it.

comment 7mo ago · link · parent

yes. this is current issue. there are two solutions:

1. the reason it's slow as you select more series over longer periods of time is that the series has to be pulled for each time bucket in the range, and then the samples have to be pulled for each bucket. By compacting older buckets and merging samples together, historical queries should be pretty comparable to 'more recent' cold queries. 2. We don't pre-cache all the metadata today. If we did that, then we could parallelize sample loads much more efficiently, lowering latency. 3. There is a lot of room to do better batching and tune the parallelism of cold reads.

We've only been at this for a couple of months. THe techniques to improve latency on object storage are well known, we just have to implement them.

Another benefit is this: all the data is on S3, so spinning up more optimized readers to transform older data to do more detailed analysis is also an option with this architecture.

comment 7mo ago · link · parent

Agreed. VictoriaMetrics is indeed a very compelling offering. The disk-less approach is significantly simpler to operate, which I think is the biggest difference. Running opendata's version yourself has fewer moving pieces, and standard operations become trivial because no single service retains permanent state.

It's a meaningful change in calculation of running yourself vs paying someone to do it for you IMO.

comment 7mo ago · link · parent

Good call out, updated the intro with a summary of the cost benefit. Thanks for the feedback!

13.

OpenData Timeseries: Prometheus-compatible metrics on object storage(opendata.dev ↗)

18 points · by apurvamehta · 7mo ago · 15 comments

14.

Sorted string tables (SST) from first principles(bitsxpages.com ↗)

71 points · by apurvamehta · 10mo ago · 11 comments

15.

Four Horsemen: Lessons from Distributed System Apocalypse(responsive.dev ↗)

3 points · by apurvamehta · 1y ago · discuss

16.

The Why, When, and How of Kafka Applications(responsive.dev ↗)

1 points · by apurvamehta · 1y ago · discuss

17.

Founder's Letter: Responsive and the Future of Stream Processing(responsive.dev ↗)

4 points · by apurvamehta · 1y ago · discuss

comment 9y ago · link · parent

From the very same blog post:

> Is this Magical Pixie Dust I can sprinkle on my application?

> No, not quite. Exactly-once processing is an end-to-end guarantee and the application has to be designed to not violate the property as well. If you are using the consumer API, this means ensuring that you commit changes to your application state concordant with your offsets as described here.

I think that is a pretty clear statement that end-to-end exactly once semantics doesn't come for free. It states that there needs to be additional application logic to achieve this and also specifies what must be done.

comment 9y ago · link · parent

Personally, I would welcome Aphyr trying to break the Kafka EOS guarantees. Like all software, there will be bugs, and the exposure will only make it stronger and more viable.

I write as one of the implementors of exactly once guarantees in Kafka.

comment 9y ago · link · parent

Points 1 & 2. There is no direct communication between a producer and consumer. The producer writes to the broker, the consumer reads from the broker. There is a detailed flow diagram for the producer side operations in the article, and this deck has more of the details of how both the producer and consumer work: https://www.slideshare.net/apurva2/introducing-exactly-once-...

3. Yes, it has been tested empirically. Quoting from the article:

> We wrote over 15,000 LOC of tests, including distributed > tests running with real failures under load and ran them > every night for several weeks looking for problems. This > uncovered all manner of issues, ranging from basic > coding mistakes to esoteric NTP synchronization issues > in our test harness. A subset of these were distributed > chaos tests, where we bring up a full Kafka cluster with > multiple transactional clients, produce message > transactionally, read these messages concurrently, and > hard kill clients and servers during the process to > ensure that data is neither lost nor duplicated.

comment 13y ago · link · parent

We did our experiments directly on hardware. I don't think that AWS VMs simulate multiple physical sockets. If they don't then this article will not apply to them.

comment 13y ago · link · parent

Wow.. that's great to know. We will definitely investigate this approach. Thanks for sharing! :)

comment 13y ago · link · parent

That would be true if we were using C++. Unfortunately, all our code is in Scala and we use Java NIO libraries to memory map our files. AFAIK, they don't give us the option on using these POSIX calls.

comment 13y ago · link · parent

Yes. It was a blunder. The post has been updated to reflect this.

comment 13y ago · link · parent

Yikes. I meant that they dropped TO 1/4th the original.

comment 13y ago · link · parent

Thanks, the 400% number is wrong. It was a last minute edit.. I should learn not to do that. I have updated the post to say that the error rates have dropped by 1/4th.

comment 13y ago · link · parent

This is exactly right :)
12