Better HN
topnewbestaskshowjobs
Log inSign up

hubertzhang

42 karma · joined Jun 29, 2024 (2y ago) · 51 submissions

hubertzhang@eloqdata.com
Submissions

comment 2w ago · link · parent

Like Databrick acquired Neon?

comment 2w ago · link · parent

what's the common use case for e-means/k-means nowadays?

comment 2w ago · link · parent

People use machine learning models before and after LLM is invented.

comment 2w ago · link · parent

Back in 2018, when I was at Greenplum, my team worked through The Internals of PostgreSQL together alongside Andy Pavlo’s CMU database courses. It was invaluable for anyone working on the database kernel. Today, a beginner can get that same interactive learning experience simply by chatting with AI, much like the discussions our team had back then.

Now I’m building Lavik, a new cache service for PostgreSQL. Traditional caches like Redis are DRAM-based, so they can only hold a small slice of hot data. Once your data outgrows memory, you’re exposed to cache miss storms, where a flood of requests falls through to PostgreSQL all at once. Nobody likes those. (OpenAI encounter the similar cache miss storms problem: https://openai.com/index/scaling-postgresql/)

Lavik takes a different path: it runs on NVMe SSDs, and it’s still faster than Redis running on DRAM. That’s not what most people expect. Conventional wisdom says SSD-based systems trade speed for capacity, but Lavik gives you both. You can keep TB-scale data in cache while getting 1M QPS and sub-millisecond P99 latency.

Lavik is open source under the Apache License. GitHub: https://github.com/eloqdata/lavik Website: https://lavik.dev

comment 3w ago · link · parent

I'm the author... Codex is co-author but the blog “Migrate Your 300-Node Redis Cluster to Just 3 Lavik Nodes” is reviewed by myself.

comment 3w ago · link · parent

Yes, I think it's Hackernews admin help to promote this one.

comment 3w ago · link · parent

Yes, we compared Lavik with DragonflyDB on flash

https://lavik.dev/en/compare/lavik-vs-dragonfly/

comment 1mo ago · link · parent

Do you mean the use case of a 300-node Redis Cluster?

It’s very common. Since Redis typically runs with 2 vCores per node, a 300-node cluster can only store about 2.4 TB of data.

It’s common in human-centric feature stores and profile stores. But it’s even more common in agent profile stores, since agent profiles are a much larger category.

9.

Migrate Your 300-Node Redis Cluster to Just 3 Lavik Nodes(lavik.dev ↗)

18 points · by hubertzhang · 1mo ago · 12 comments

comment 1mo ago · link · parent

Github: https://github.com/microsoft/garnet

Competitors: 1. DragonflyDB: https://github.com/dragonflydb/dragonfly

2. Lavik: https://github.com/eloqdata/lavik

DragonflyDB is famous for 4 millions QPS on single node. While Lavik focus on optimizing Redis workload on NVMe SSD.

11.

Garnet: KV store for agent, best paper VLDB 2026(vldb.org ↗)

2 points · by hubertzhang · 1mo ago · 1 comment

comment 10mo ago · link · parent

Snowflake also uses S3 as primary storage for OLAP workload, what's diff?

comment 10mo ago · link · parent

we leverage batch write optimization which uses Copy-on-write B-tree variant enables high-throughput batch writes without blocking concurrent reads. MVCC-based design eliminates lock contention and provides predictable write amplification.

comment 10mo ago · link · parent

Most Redis alternatives that use disk for persistence struggle with tail latency (P9999) due to background maintenance or OS filesystem overhead. We built EloqKV on a custom storage engine, EloqStore, to solve this.

Key Architectural Choices:

- Custom B-tree Variant: Unlike LSM-trees used in many disk-backed stores, our B-tree variant avoids the "compaction stalls" that typically cause high tail latency during heavy writes.

- Coroutines & io_uring: We leverage io_uring for asynchronous I/O and use coroutines to manage thousands of concurrent I/O requests without the context-switching overhead.

- Object Storage Integration (optional): EloqStore uses object storage as the primary persistent layer, with NVMe acting as a high-speed cache/tier, providing durability without sacrificing speed.

We’ve reached a point where we can provide predictable P99.99 latency even when the working set is primarily on NVMe. We’d love to answer any questions about the storage internals or our benchmarking process.

15.

EloqKV: Achieving Predictable P99.99 Latency on NVMe with Redis API(eloqdata.com ↗)

16 points · by hubertzhang · 10mo ago · 4 comments

comment 1y ago · link · parent

My reflections on the AWS us-east-1 outage.

Yesterday I posted a Show HN introducing our MongoDB-compatible database EloqDoc (https://news.ycombinator.com/item?id=45634638 ). Today’s AWS us-east-1 outage was a strong reminder of why relying on local NVMe as primary database storage is risky—and why OLTP databases should consider object storage as the durable foundation instead.

comment 1y ago · link · parent

I cannot pull images from docker hub.

comment 1y ago · link · parent

Like AWS, json is OK for me

comment 1y ago · link · parent

A recent hacker-news argues: “Redis is fast — I’ll cache in Postgres.” The author benchmarks a simple API and concludes that although Redis is faster, Postgres is “fast enough,” and removing another component can be worth it for many projects.(https://news.ycombinator.com/item?id=45380699)

I agree with two things:

- Postgres is an excellent, reliable database.

- Fewer moving parts is a win—when the workload fits.

But there’s a third path that many teams overlook: a Redis-compatible database that is durable by default. That’s what we built with EloqKV—Redis protocol + redo log, multi-writer, transactions, persistence, durability, store procedure—so you get database + cache in one engine.

Any thoughts?

20.

Postgres is reliable – I'll persist in EloqKV(eloqdata.com ↗)

3 points · by hubertzhang · 1y ago · 2 comments

comment 1y ago · link · parent

That use case aligns perfectly with EloqKV’s capabilities. In pure cache mode, batching multi-key deletions within Lua scripts can significantly reduce latency by minimizing client–server round trips.
12