r/developers • u/Educational_You2257 • 11d ago
Tools and Frameworks Key Value Database for AI workloads
Hey everyone,
I'm building Thunder, a high-performance key-value database designed for workloads where latency, throughput, and efficient resource utilization matter.
With AI applications, we're seeing increasing amounts of data being generated, stored, and retrieved. I wanted to explore whether we could build a database from the ground up that handles these workloads more efficiently, rather than simply relying on larger amounts of RAM.
The core idea is simple: use RAM intelligently, not excessively.
Thunder is being built in Rust with a few architectural decisions:
Shard-per-core architecture: Each core owns its data, minimizing contention and synchronization overhead.
Asynchronous I/O: Uses io_uring on Linux to take advantage of modern NVMe storage.
Minimal RAM overhead: Keep essential metadata and indexes in memory while streaming data from storage through reusable buffers.
Zero-copy wherever possible: Reduce unnecessary memory copies and allocations.
Custom storage engine: Designed around efficient allocation, fragmentation management, and predictable performance.
High concurrency: Handle large numbers of concurrent operations without relying on traditional locking across the entire database.
The long-term goal is to support both small, latency-sensitive operations and large data workloads without requiring enormous amounts of memory.
It's still under development, and I'm experimenting with different approaches to storage, indexing, caching, and I/O scheduling.
I'd love to hear from people building AI infrastructure or working with large-scale key-value stores.
What are the biggest bottlenecks you're facing with your current databases? Is it memory consumption, read latency, write throughput, storage costs, or something else?
Also, what would you expect from a new key-value database built specifically with AI workloads in mind?
Docker Hub: Thunderstrike
1
u/Inevitable_Invite519 8d ago
every database is a key-value store until requirements arrive
1
u/Educational_You2257 8d ago
You can check the benchmark at https://www.reddit.com/r/Backend/s/WKqsvkfXxZ
1
u/Jaded_Ear2165 7d ago
the hard part isn’t saying “use RAM intelligently,” it’s publishing reproducible benchmarks against RocksDB, Redis, and Dragonfly on the same workload and hardware
1
u/Own_Magazine_476 7d ago
what does Thunder actually beat RocksDB or Dragonfly on in reproducible benchmarks?
1
1
11d ago
[removed] — view removed comment
1
u/AutoModerator 11d ago
Your post or comment was removed because r/developers does not allow external links. Please share the content or ask your question without linking out.
If you think this was a mistake, message the mods.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
9d ago
[removed] — view removed comment
1
u/Educational_You2257 8d ago
I will share you the benchmark and it is not the ordinary kv store. It is fundamental based on nvme instead of ram.
0
2
u/sayboom 11d ago
There is exists github for this?