Crates.io | mpmc-map |
lib.rs | mpmc-map |
version | 0.2.0 |
source | src |
created_at | 2021-04-29 00:00:12.529682 |
updated_at | 2021-05-04 14:35:02.175977 |
description | Mpmc async map implementation for highly concurrent low-write access |
homepage | |
repository | https://github.com/Protryon/mpmc-map |
max_upload_size | |
id | 390812 |
size | 10,007 |
This crate provides a rapidly-eventually-consistent multi-producer multi-consumer map. It's intended for high read low write environments.
MpmcMap
is backed by an arc-swap
of im::HashMap
. We use an actor model to receive events through an tokio::sync::mpsc
channel to an updater task that will apply updates and update the inner map.
This crate will have high overhead in high-write environments. Look for a debounced eventually consistent map implementation, perhaps evmap
, if you have lots of writes.
Or of course, submit a PR to add that functionality here!