M
MercyNews
Home
Back

Minikv: A New Distributed Storage Engine in Rust

Hacker News1h ago
3 min read
📋

Key Facts

  • ✓ Minikv is an open-source distributed storage engine built in the Rust programming language.
  • ✓ The system integrates a strongly-consistent key-value database using Raft consensus with S3-compatible object storage.
  • ✓ It supports multiple pluggable storage backends, including in-memory, RocksDB, and Sled.
  • ✓ The engine features built-in multi-tenancy with per-tenant namespaces, role-based access, and quotas.
  • ✓ Deployment is simplified through a single binary that works with Docker and Kubernetes.
  • ✓ The project provides S3-compatible HTTP, REST, and gRPC APIs for data interaction.

In This Article

  1. Quick Summary
  2. Core Architecture
  3. APIs and Features
  4. Getting Started
  5. Community and Availability
  6. Looking Ahead

Quick Summary#

A new open-source project named minikv has been introduced to the developer community, offering a distributed key-value and object store built entirely in Rust. The system is engineered to serve as a robust foundation for learning distributed systems, conducting experiments, and powering self-hosted storage setups.

By merging a strongly-consistent key-value database with S3-compatible object storage, minikv provides a versatile tool for developers. Its architecture is designed to be both production-ready and extensible, growing from a personal learning project into a comprehensive storage solution.

Core Architecture#

The foundation of minikv is its Raft consensus implementation, which ensures strong consistency across the distributed system. This mechanism handles automatic failover and sharding, providing reliability for critical data operations. The project's design philosophy emphasizes simplicity and educational value, making complex distributed concepts more accessible.

Storage flexibility is a key feature, with support for multiple backends that can be selected based on specific needs. This allows users to tailor the system's performance and persistence characteristics to their environment.

Key architectural components include:

  • Raft consensus for strong consistency and fault tolerance
  • Pluggable storage backends: in-memory, RocksDB, and Sled
  • Single binary deployment for straightforward operation
  • Compatibility with Docker and Kubernetes orchestration

"I’d love to hear feedback, questions, ideas, or your stories running distributed infra in Rust!"

— Minikv Creator

APIs and Features#

Minikv exposes a comprehensive set of APIs to interact with its storage capabilities. The primary interface is an S3-compatible HTTP API, allowing seamless integration with existing tools and workflows designed for object storage. Additionally, the system offers REST and gRPC APIs for more specialized use cases.

Beyond storage, the engine incorporates features necessary for production-like environments. It includes built-in support for multi-tenancy, enabling isolated namespaces for different users or applications. Security and observability are addressed through integrated metrics, TLS support, and JWT-based API keys.

Notable features include:

  • S3-compatible HTTP API for object storage operations
  • Multi-tenancy with per-tenant namespaces and quotas
  • Role-based access control and audit logging
  • Prometheus metrics for system monitoring
  • TLS encryption and JWT-based API key authentication

Getting Started#

Developers can quickly begin experimenting with minikv through a straightforward setup process. The project is hosted on GitHub and can be compiled using the Rust toolchain. A provided configuration file allows for easy customization of the node's behavior.

The initial setup involves cloning the repository, building the binary, and launching the service. Once running, the system's health can be verified, and basic storage operations can be tested immediately. This hands-on approach is central to the project's educational mission.

A basic single-node demonstration follows these steps:

  1. Clone the repository from GitHub
  2. Build and run the release binary with a sample configuration
  3. Check the service health endpoint
  4. Perform S3-compatible upload and read operations

Community and Availability#

The minikv project is publicly available, with its source code hosted on GitHub and its package published on crates.io. The creator has expressed interest in community feedback, questions, and stories about running distributed infrastructure in Rust. This open invitation fosters a collaborative environment for improvement and knowledge sharing.

The repository contains comprehensive documentation, including details on cluster setup and system architecture. This resource is intended to help users understand the inner workings of the engine and adapt it for their specific needs.

I’d love to hear feedback, questions, ideas, or your stories running distributed infra in Rust!

Looking Ahead#

Minikv represents a significant contribution to the ecosystem of distributed systems tools available in Rust. By providing a production-ready yet educational platform, it lowers the barrier to entry for developers looking to understand and implement complex storage architectures.

As the project evolves, its combination of Raft consensus, S3 compatibility, and flexible deployment options positions it as a valuable asset for both learning and practical self-hosted applications. The active engagement from its creator and the community will likely drive its future development and adoption.

Continue scrolling for more

AI Transforms Mathematical Research and Proofs
Technology

AI Transforms Mathematical Research and Proofs

Artificial intelligence is shifting from a promise to a reality in mathematics. Machine learning models are now generating original theorems, forcing a reevaluation of research and teaching methods.

Just now
4 min
252
Read Article
Trump announces tariffs on NATO allies for opposing US control of Greenland
Politics

Trump announces tariffs on NATO allies for opposing US control of Greenland

President Donald Trump announced that the NATO countries who have sent small contingents of troops to Greenland will be charged a 10% tariff on all goods.

1h
3 min
0
Read Article
I thought downsizing would be hard for our family of 4. It ended up changing our lives for the better.
Lifestyle

I thought downsizing would be hard for our family of 4. It ended up changing our lives for the better.

The author's family moved from Texas to Colorado and downsized their home. Courtesy of Vivaciously Chelsea I moved my family from a 3,300-square-foot house to 1,200 square feet of living space. The move has reduced my family's stress and strengthened our bond. We found community and freedom in our downsized city life. In July 2025, my husband, Zach, and I moved our family of four from the suburbs of Ft Worth, Texas, to Denver. After nearly 10 years of marriage, two kids, and three work-related moves, it was finally time to settle in a place of our choosing. This time, we didn't just want a change of scenery; we wanted a change of lifestyle. But finding a house in the bustling city neighborhood of our dreams within our budget meant downsizing — drastically. Moving from our 3,300-square-foot home to a 2,300-square-foot bungalow with 1,200 square feet of actual living space (the rest being unfinished basement) wasn't easy. It meant swapping our large kitchen island for a small dining table. It meant no more master bath soaking tub, my refuge from life's stresses on more occasions than I could count. And it meant my kids giving up their separate rooms to share one. But what we've gained in the quality and quantity of time spent together is worth every bit of lost square footage. We're spending our time on what matters Our bigger house in Texas required more upkeep, and we were more than happy to give that up for extra free time on the weekends. Now, we spend our time visiting attractions such as the Denver Zoo and the Denver Museum of Nature and Science. We're fostering our kids' curiosity, exploring new places together. Our everyday life feels more special and meaningful because these shared experiences amplify our family connection. The author's new house is about a third the size of her previous house. Courtesy of the author We're also getting out in nature more. Aside from weekend hiking and skiing adventures, our days revolve around outdoor living. We walk everywhere we can, including restaurants, parks, and even Trader Joe's, which is beneficial because driving to Trader Joe's means parking at Trader Joe's, and nobody enjoys that. Our moods are lighter, and our stresses are reduced. The first time we walked to a restaurant instead of driving, it felt like we were on vacation. Our lives had always been car-dependent, but that's no longer the case. The kids laughed and raced each other down the sidewalk. We marvelled at the mature trees and brightly colored flowers lining 7th Avenue Parkway. There was no timeline or rushing, just the joy of being present. When we made our way home after an alfresco dinner at Postino, I asked my son if he liked walking to dinner. He asked simply, "Can we do this every day?" We're finding connections in our community Zach and I frequently sit on our front porch while our boys play with neighborhood kids, a first for us. Having houses so close together makes it easier to meet people and form real connections. We know almost every household on our block, and we regularly visit with our closest neighbors. We even enjoyed our first block party in August, which fell on my eldest's birthday, and according to him, it was his "Best birthday ever!" The author's child loved his backyard birthday party. Courtesy of the author Our boys run between yards while we chat with new friends. They are experiencing a childhood closer to the one we grew up with. They're building confidence and finding their place, and that's translating to more smiles and fewer tantrums. Zach and I are finding our village, and parenthood feels less solitary. On a recent trip back to Texas for Thanksgiving, I texted our next-door neighbor to let her know we'd be out of town. Without even asking, she offered to take in our mail. It may be a small gesture, but that sense of community is priceless to us. My boys have more freedom Downsizing has also allowed our kids to play more independently in an outdoor space that feels safe and protected. We have an unobstructed line of sight to the backyard, and no matter where my husband and I are in the house, we can hear them if they need us. The result has been hours of creative play, building campsites and outdoor kitchens, playing soccer and baseball, and having water balloon fights or Nerf battles. The author's kids have more freedom and can play outside in their new home. Courtesy of the author Most evenings, my kids are in the backyard playing games and getting dirty. When the weather is nice, they run around with their friends down the street. I would never have felt comfortable not knowing every move my kids were making before, but here, where everyone is watching out, and I can wave at my kids down the block to signal when it's time to come home, less space means more freedom. Our downsized life isn't always perfect. Despite all our decluttering efforts, we're still left with more stuff than we can accommodate. We also struggle with the lack of privacy, and at times, our smaller shared space feels more claustrophobic than cozy. However, downsizing for an urban lifestyle has given us the opportunity to live beyond our four walls, and that's worth more than any amount of space could ever be. Read the original article on Business Insider

1h
3 min
0
Read Article
EU Weighs Retaliation to US Tariff Threat
Politics

EU Weighs Retaliation to US Tariff Threat

European Council President Antonio Costa confirmed the EU is weighing a joint response to a new US tariff plan imposing 10% levies on eight European nations, including Germany, France, and the UK.

1h
5 min
6
Read Article
Tesla's AI5 Chip Design 'Almost Done,' Musk Reveals
Technology

Tesla's AI5 Chip Design 'Almost Done,' Musk Reveals

Elon Musk has announced that the design for Tesla's next-generation self-driving computer, the AI5 chip, is 'almost done'—just six months after he declared it 'finished.' The CEO also outlined an ambitious new development timeline for future chips.

1h
5 min
6
Read Article
NASA's Artemis 2 Moon Rocket Rollout
Science

NASA's Artemis 2 Moon Rocket Rollout

NASA is preparing for the historic Artemis 2 mission, which will send four astronauts on a journey around the Moon. The crew includes three Americans and one Canadian, marking a significant milestone in lunar exploration.

2h
5 min
6
Read Article
Why Water Leak Sensors Remain Critical for Smart Homes
Technology

Why Water Leak Sensors Remain Critical for Smart Homes

In 2026, water leak sensors remain the most critical piece of hardware for smart home setups, offering vital protection against costly water damage and providing genuine peace of mind for homeowners.

2h
5 min
6
Read Article
Mercedes Secret $10K G-Wagen Rebate Revealed
Automotive

Mercedes Secret $10K G-Wagen Rebate Revealed

Discounts on a brand-new Mercedes G-Wagen are rare, but a hidden rebate deal on the 2026 electric model is now available, offering significant savings to savvy buyers.

2h
5 min
6
Read Article
France Rejects Fiscal Tricks in 2026 Budget
Politics

France Rejects Fiscal Tricks in 2026 Budget

Public Accounts Minister Amélie de Montchalin has drawn a firm line against any fiscal manipulation to pass the 2026 budget, attributing the current legislative impasse to the political extremes.

2h
5 min
7
Read Article
Arsenal's Title Charge Stalls in Forest Draw
Sports

Arsenal's Title Charge Stalls in Forest Draw

A dogged Nottingham Forest performance denied Arsenal a crucial victory, leaving the title race finely poised as Manchester City remain within striking distance.

2h
5 min
6
Read Article
🎉

You're all caught up!

Check back later for more stories

Back to Home