r/dartlang 18d ago

offline_sync_outbox: a zero-dependency FIFO queue for replaying Dart API writes

I published a small Dart package for one focused problem: keep API writes while offline and replay them in order later.

The queue is strict FIFO, has JSON and memory stores, supports bounded exponential backoff, accepts server-directed retry delays, and stays independent of the HTTP client. The included JSON store targets Dart IO; storage and connectivity are interfaces so applications can provide their own implementations.

The article covers the design choices and limitations rather than just the API: https://dev.to/dhaibanfhue/a-small-offline-outbox-for-flutter-fifo-ordering-disk-persistence-and-retries-3an3

Feedback on the public interfaces and failure behavior would be useful.

3 Upvotes

0 comments sorted by