outbox_queue 0.1.1
outbox_queue: ^0.1.1 copied to clipboard
A durable outbox for offline-first apps — queue writes while the network is gone, replay them in order when it returns, with backoff, lanes and dead-lettering.
Changelog #
0.1.1 #
No behaviour changed. 0.1.0 went out from a checkout that was three commits behind, so it shipped without any of this.
- Documented every public member. 0.1.0 had none, which is most of what pub.dev scores a package on.
- Moved
docs/todoc/, the layout pub expects. 0.1.0 published with the warning still showing. - The example now reports what is still queued when it finishes and says where that state lives, so running it twice shows a refused operation being retried — which is the point of the package.
0.1.0 #
First release.
- Durable queue of pending writes, replayed oldest-first when
drain()is called. - Independent lanes, so one blocked stream does not stall the others.
- Exponential backoff with full jitter.
- Dead-lettering after a configurable number of attempts, on an explicit
dropverdict, or when no handler is registered for a type. InMemoryOutboxStoreandFileOutboxStore;OutboxStorefor anything else.statsstream for showing pending counts without polling.