Skip to content
folkways

Ordered, replayable event streams

Folkways Stream

Publish events to a topic. Every subscriber gets them in order and catches up after a disconnect or a reload.

Stream

orders/eu-shopstream

head #1040

33

34

35

36

37

38

39

warehouse dashboard

at #1040

courier app

at #1040

analytics worker

at #1039
3 subscribers · each resumes from its own cursor
One ordered log, three subscribers. When the courier app goes offline, it stops at its cursor; when it comes back, it replays what it missed, in order.

Features

What Stream does.

Live works today·Coming soon on the roadmap

  • Live

    Ordered delivery

    Events arrive in the order they were stored, each with a cursor and a permanent ID.

  • Live

    Replay from any point

    Start from the latest event, the oldest one kept, the last N, or after a cursor you saved.

  • Live

    Resume after reconnects and reloads

    The SDK resubscribes from the last event it handled. With local storage, that survives page reloads.

  • Live

    Offline publishing

    Publishes made while offline wait in a queue of up to 1,000 and go out when the connection returns.

  • Live

    No duplicates on retry

    Idempotency keys stop a retried publish from being stored twice.

  • Live

    Gap detection

    If history was trimmed or is older than 24 hours, the subscription tells you and carries on.

  • Live

    Any payload format

    JSON, text, bytes, FlatBuffers, Protobuf, MessagePack or CBOR.

  • Live

    Publish from your backend

    Servers publish over HTTP with the server SDK.

  • Live

    Several delivery types in one topic

    Stream, KV and Signal events on the same topic.

  • Live

    History survives restarts

    Stream history is kept on disk, so clients resume after a restart with no gap. The 24-hour window still applies.

  • Coming soon

    Longer stream history

    Keep stream history beyond 24 hours.

How it’s built

The topic.

One topic can carry several delivery types: each event name has its own, set once in the topic rule.

orders/{shop}

Every order event for a shop, stored in order and replayable for subscribers that join late or come back.

Events on orders/{shop}
EventType
order.createdA new order.Stream
order.paidPayment confirmed.Stream
order.shippedHanded to the courier.Stream

Details

Good for

  • AI token streams
  • Chat messages
  • Activity feeds
  • Order and job status

Good to know

  • History is capped at 5 MiB by default and kept for at most 24 hours.
  • If history was trimmed, the subscription emits a gap event and carries on. A restart doesn’t trim it.