Better HN
topnewbestaskshowjobs
Log inSign up

agavra

62 karma · joined Mar 14, 2013 (13y ago) · 45 submissions

Submissions

1.

Lessons in Latency(bitsxpages.com ↗)

1 points · by agavra · 2mo ago · discuss

2.

Divide and Compact: Segment-Oriented Compaction in SlateDB(slatedb.io ↗)

10 points · by agavra · 4mo ago · discuss

3.

SlateDB: An Object-Native LSM for Online Systems(slatedb.io ↗)

15 points · by agavra · 4mo ago · discuss

4.

The Mathematics of Multi-Tenancy(bitsxpages.com ↗)

6 points · by agavra · 5mo ago · discuss

5.

Protocols for transactional usage of object storage(bitsxpages.com ↗)

5 points · by agavra · 6mo ago · discuss

comment 6mo ago · link · parent

If you do want a native CLI in-terminal for this, try out github.com/agavra/tuicr

7.

Faster Timeseries Aggregations(opendata.dev ↗)

10 points · by agavra · 6mo ago · discuss

comment 6mo ago · link · parent

Save you the read, here's the interesting part:

For $90/mo, we ran a benchmark pushing ~30 MiB/s of metrics data via Buffer. Using public pricing calculators, the equivalent Kafka service cost roughly $1,300/month for managed WarpStream and $8,500/month for self-hosted Apache Kafka.

9.

How metrics are stored and queried(bitsxpages.com ↗)

7 points · by agavra · 7mo ago · discuss

comment 7mo ago · link · parent

This is the biggest gap in the 0.2.1 release. We have a pretty naive query execution engine because we've spent most of the time on core data structures and ingestion.

I have some prototypes of vectorized compute that takes that same query from 2s -> ~800ms, and it's just early days. If you want to contribute to help make it better, the query engine part of it is begging for help!

comment 7mo ago · link · parent

also super cool to see you on here valyala! we took a bunch of inspiration from your work at VM. kudos to all you've done :)

comment 7mo ago · link · parent

The other solution is to aggressively size your disk cache and keep effectively the full working set on disk, using object storage just as a durability layer. Then the main benefit is operational simplicity because you have a true shared-nothing architecture between the read replicas (there's no quorum or hash ring to maintain and no deduplication on read). Obviously you'll have a more expensive deployment topology if you do so, but it's still compelling IMO because you have the knobs to tune whether you want to cache on disk or not.

comment 7mo ago · link · parent

anecdotally I've heard confirmations of the challenge of running VictoriaMetrics clusters at scale. they're way better than Cortex/Thanos and they've built a pretty awesome product but still are a pretty significant operational burden.

comment 7mo ago · link · parent

Good point, a tl;dr is probably worthwhile.

It's definitely not quite turn key just yet but we've been dogfooding it in production against a moderate metrics use case (~30k samples/s) and have it hooked up to grafana (you just configure a prometheus source and point to your deployed URL). We run it on a single node with no replicas ;)

15.

The Broken Economics of Databases(bitsxpages.com ↗)

8 points · by agavra · 8mo ago · discuss

16.

Yuzudraw(yuzudraw.com ↗)

4 points · by agavra · 8mo ago · discuss

17.

Show HN: Yuzudraw – visual editor for ASCII diagrams with token-efficient DSL(github.com ↗)

1 points · by agavra · 8mo ago · discuss

comment 9mo ago · link · parent

Checkout https://github.com/agavra/tuicr - it's built exactly for this purpose (reviewing code in your terminal and then adding comments and exporting it to an agent to fix).

comment 9mo ago · link · parent

I just built a version of this a month ago that also allows you to add review comments so you can export them back to an Agent to fix: https://github.com/agavra/tuicr

Great work on deff, would love to brainstorm here :)

comment 9mo ago · link · parent

the compression algorithm you select for your data is quite dependent on the dataset you have. the equations in this blog post don't help you choose which compression to use, but rather "how much" and when to compress. I would be curious to formalize the math for different compression algorithms though... might be a good follow up post!

21.

The mathematics of compression in database systems(bitsxpages.com ↗)

61 points · by agavra · 9mo ago · 16 comments

22.

Understanding LSM trees via read, write, and space amplification(bitsxpages.com ↗)

3 points · by agavra · 10mo ago · discuss

23.

Tuicr – Terminal UI for Code Review(tuicr.dev ↗)

2 points · by agavra · 10mo ago · discuss

comment 10mo ago · link · parent

This is spot on, I understand very little about how terminal rendering works and was able to build github.com/agavra/tuicr (Terminal UI for Code Review) in an evening. The initial TUI design was done via Claude.

comment 10mo ago · link · parent

RocksDB actually does something somewhat similar with its prefix compression. It prefix-compresses texts and then "resets"the prefix compression every N records so it stores a mapping of reset point -> offset so you can skip across compressed records. It's pretty neat

comment 10mo ago · link · parent

this is pretty different but reminds me of https://en.wikipedia.org/wiki/Bitcask - if you're storing it all in memory why not just use a hash index?

comment 10mo ago · link · parent

So cool to see this make the front page of hacker news! I'm the author, I'll be online here throughout the weekend to answer any questions you might have :) excited for the next post which is in the works about LSM trees.
12