dagoof / gibb

Message broadcasting pattern for go. In order, no messages dropped, and no backup for slow receivers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gibb

Package gibb implements a method of broadcasting messages to receivers with the following guarantees.

No messages are dropped. Each receiver will always get every message that is broadcasted.

Slow receivers never block delivery to other receivers that are also listening.

All messages are delivered in order.

Potentially unbounded memory use if consumers cannot keep up with producers. Receivers that fall out of scope will be GC'd, but if a receiver is present and not read from, its memory use will grow as values are written to its broadcaster.

Build Status

https://godoc.org/github.com/dagoof/gibb

About

Message broadcasting pattern for go. In order, no messages dropped, and no backup for slow receivers.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%