Bolt is a pure Go key/value store inspired by Howard Chu's LMDB project. The goal of the project is to provide a simple, fast, and reliable database for projects that don't require a full database server such as Postgres or MySQL. Since Bolt is meant to be used as such a low-level piece of functionality, simplicity is key. The API will be small and only focus on getting values and setting values. That's it. Bolt is stable, the API is fixed, and the file format is fixed. Full unit test coverage and randomized black box testing are used to ensure database consistency and thread safety. Bolt is currently used in high-load production environments serving databases as large as 1TB. Many companies such as Shopify and Heroku use Bolt-backed services every day. Please note that Bolt obtains a file lock on the data file so multiple processes cannot open the same database at the same time.

Features

  • Bolt allows only one read-write transaction at a time but allows as many read-only transactions as you want at a time
  • Each transaction has a consistent view of the data as it existed when the transaction started
  • You can only retrieve buckets, retrieve values, and copy the database within a read-only transaction
  • Concurrent Batch calls are opportunistically combined into larger transactions
  • Bolt stores its keys in byte-sorted order within a bucket. This makes sequential iteration over these keys extremely fast
  • The cursor allows you to move to a specific point in the list of keys and move forward or backward through the keys one at a time

Project Samples

Project Activity

See All Activity >

Categories

Database

License

MIT License

Follow Bolt

Bolt Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Bolt!

Additional Project Details

Operating Systems

Android, Apple iPhone, Linux, Windows

Programming Language

Go

Related Categories

Go Database Software

Registered

2021-05-18