bounded-spsc-queue VS lockfree

Compare bounded-spsc-queue vs lockfree and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
bounded-spsc-queue lockfree
1 11
154 704
- -
10.0 7.9
over 1 year ago about 1 month ago
Rust C++
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

bounded-spsc-queue

Posts with mentions or reviews of bounded-spsc-queue. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-27.
  • Optimizing a Ring Buffer for Throughput
    2 projects | news.ycombinator.com | 27 Jun 2023
    It's just amortizing for large transfers. For frequent near-empty cases it still has the shared pointers problem. NVMe have a really clever way to avoid this, but it depends on the fact that there's [occasional] communication on the reverse stream (the SQ/CQ pair): The cache line sized entries in the submit queue has a "phase" bit in the last word. The reader can just read that to know when the entry has updated (the polarity of the bit toggles each time we loop around and you can just use the top+1 index bit if power-of-two sized).

    The back pressure is handled with a credit scheme and the producer gets an updated copy of most recently-know consumer read counter with every completion message back.

    Using this scheme you can achieve the optimal performance with just a single cache line of traffic for each cache-line sized message.

    Unfortunately I haven't found a SPSC Rust crate that does this, but https://github.com/polyfractal/bounded-spsc-queue [abandoned] comes close.

lockfree

Posts with mentions or reviews of lockfree. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-29.

What are some alternatives?

When comparing bounded-spsc-queue and lockfree you can also consider the following projects:

rc_event_queue - VecDeque-like fast, unbounded, mpmc/spmc concurent FIFO message queue. Lockless reads, write-lock writes.

glibc - GNU Libc

distortos - object-oriented C++ RTOS for microcontrollers

micro-gl - Headers Only C++11 CPU Vector Graphics. no std-lib, no FPU and no GPU required !

tlaplus - TLC is a model checker for specifications written in TLA+. The TLA+Toolbox is an IDE for TLA+.

Ring-Buffer - A simple ring buffer (circular buffer) designed for embedded systems.

multiversion-concurrency-control - Implementation of multiversion concurrency control, Raft, Left Right concurrency Hashmaps and a multi consumer multi producer Ringbuffer, concurrent and parallel load-balanced loops, parallel actors implementation in Main.java, Actor2.java and a parallel interpreter

set-ethernet-max-ring-buffer - Set max TX/RX ring buffer for ethernet device

jemalloc

rust-playground - The Rust Playground

multiversion-concurrency-contro