Real-time purely functional persistent (in the data-structure sense not that it goes to disk) queue. Will never get into a bad state unlike the erlang queue although has lower throughput for good states. Optimized for consistent latency instead of throughput.
available in Hex, the package can be installed
by adding hood_melville
to your list of dependencies in mix.exs
:
def deps do
[
{:hood_melville, "~> 0.1.0"}
]
end
queue =
HoodMelville.new()
|> HoodMelville.insert("sample")
HoodMelville.get(queue)
See the linked docs for more function info and/or the test directory