Skip to content

Mpmc async map implementation for highly concurrent low-write access

Notifications You must be signed in to change notification settings

Protryon/mpmc-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpmc-map

Purpose

This crate provides a rapidly-eventually-consistent multi-producer multi-consumer map. It's intended for high read low write environments.

Design

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.

When you should not use this crate

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!

About

Mpmc async map implementation for highly concurrent low-write access

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages