Skip to content
codeprPublic

About

Simple Bitcask implementation using GenServer.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Sls

Simple Bitcask implementation using GenServer.

The key benefits are:

  • Low latency per item read or written
  • Consistent performance
  • Handles datasets larger than RAM
  • Small design specification

The main drawback is:

  • All your keys must fit in RAM

GenServers are used to both write and read to the datafiles, using a single GenServer process to write and multiple GenServers to read. The in-memory index is based on the ets cache.

Installation

If available in Hex, the package can be installed by adding sls to your list of dependencies in mix.exs:

def deps do
  [
    {:sls, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/sls.

About

Simple Bitcask implementation using GenServer.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages