Skip to content

codepr/sls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages