Recommendation for Key/Value storage

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. badger

    Fast key-value DB in Go.

    BoltDB and Badger are the most popular options. If you don't want to use a third-party package you'll have to reinvent it. Still, you can use one of these two as examples. You'll also find plenty of tutorials online, like this one.

  2. Nutrient

    Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.

    Nutrient logo
  3. pogreb

    Embedded key-value store for read-heavy workloads written in Go

    I will agree with built in maps, badger, and bbolt as previously mentioned. Some unique cases require that you do many read. Take a look at the design of https://github.com/akrylysov/pogreb.

  4. bolthold

    BoltHold is an embeddable NoSQL store for Go types built on BoltDB

    There's a great wrapper library around bolt (and badger, by the same guy): https://github.com/timshannon/bolthold

  5. Redis

    Redis Go client

  6. pebble

    RocksDB/LevelDB inspired key-value database in Go

  7. BigCache

    Efficient cache for gigabytes of data written in Go.

    There are also different packages used as a wrapper on top of the Go map based on what your requirements are (storing a lot of data) https://github.com/allegro/bigcache or (need performance) https://github.com/dgraph-io/ristretto. For basic use-cases, the standard Go map should be enough. Just keep in mind whether you need concurrent access to your data structure, in which case you should guard your map with a mutex .

  8. ristretto

    A high performance memory-bound Go cache

    There are also different packages used as a wrapper on top of the Go map based on what your requirements are (storing a lot of data) https://github.com/allegro/bigcache or (need performance) https://github.com/dgraph-io/ristretto. For basic use-cases, the standard Go map should be enough. Just keep in mind whether you need concurrent access to your data structure, in which case you should guard your map with a mutex .

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Sturdyc: A caching library for building sturdy systems

    1 project | news.ycombinator.com | 9 Feb 2025
  • Otter, Fastest Go in-memory cache based on S3-FIFO algorithm

    16 projects | news.ycombinator.com | 23 Dec 2023
  • imcache v1.0.0 released. A zero-dependency generic in-memory cache Go library.

    1 project | /r/golang | 3 May 2023
  • rueidis v1, a redis client with client-side caching, has been released under redis org

    3 projects | /r/golang | 1 May 2023
  • Theine - High performance in-memory cache

    2 projects | /r/golang | 11 Apr 2023

Did you know that Go is
the 4th most popular programming language
based on number of references?